定时发布目录(ops_scheduled_publications),并加固 catalog 生成器。 Co-authored-by: Cursor <cursoragent@cursor.com>
74 lines
1.9 KiB
JSON
74 lines
1.9 KiB
JSON
{
|
|
"ecr": "027",
|
|
"slug": "knowledge-chunk",
|
|
"concept": "KnowledgeChunk",
|
|
"list_method": "KnowledgeChunks",
|
|
"get_method": "KnowledgeChunk",
|
|
"table": "knowledge_chunks",
|
|
"migration": "000028",
|
|
"route_group": "/ai",
|
|
"route_resource": "knowledge-chunks",
|
|
"perm_const": "PermAIConfigRead",
|
|
"perm_code": "admin.ai_config.read",
|
|
"seed_code": "ask_grounding_intro",
|
|
"register_fn": "registerKnowledgeChunks",
|
|
"test_name": "TestAICoreKnowledgeChunks",
|
|
"row_type": "KnowledgeChunkRow",
|
|
"err_name": "ErrKnowledgeChunkNotFound",
|
|
"capability": "AICoreConfig",
|
|
"bc": "Ask_Ops",
|
|
"predecessor": "ECR-026",
|
|
"title": "AICoreConfig · KnowledgeChunk(只读薄切片)",
|
|
"non_goals": "Embedding · 上传切块 · 运行时 RAG 接线 · UGC · 真支付",
|
|
"columns": [
|
|
{
|
|
"name": "code",
|
|
"sql": "varchar(64) NOT NULL UNIQUE",
|
|
"go_name": "Code",
|
|
"go_type": "string",
|
|
"json": "code",
|
|
"seed": "ask_grounding_intro"
|
|
},
|
|
{
|
|
"name": "source_code",
|
|
"sql": "varchar(64) NOT NULL",
|
|
"go_name": "SourceCode",
|
|
"go_type": "string",
|
|
"json": "source_code",
|
|
"seed": "ask_grounding"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"sql": "varchar(128) NOT NULL",
|
|
"go_name": "Title",
|
|
"go_type": "string",
|
|
"json": "title",
|
|
"seed": "问答 grounding 引言块"
|
|
},
|
|
{
|
|
"name": "body",
|
|
"sql": "text NOT NULL",
|
|
"go_name": "Body",
|
|
"go_type": "string",
|
|
"json": "body",
|
|
"seed": "愈心谷提供陪伴式成长对话,非医疗诊断。"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"sql": "boolean NOT NULL DEFAULT true",
|
|
"go_name": "Active",
|
|
"go_type": "bool",
|
|
"json": "active",
|
|
"seed": true
|
|
},
|
|
{
|
|
"name": "system",
|
|
"sql": "boolean NOT NULL DEFAULT false",
|
|
"go_name": "System",
|
|
"go_type": "bool",
|
|
"json": "system",
|
|
"seed": true
|
|
}
|
|
]
|
|
}
|