From c27ca5a380d8cc5d0cee6ecc79801a530f6afab1 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Fri, 8 May 2026 11:20:36 +0800 Subject: [PATCH] chore(config): update gitignore and env.example - Add .qoder/repowiki/zh/ to .gitignore to exclude generated repowiki content - Update CORE_GENERAL_TYPES in env.example to align with ontology.md 13-category entity taxonomy (Chinese labels) - Add PIPELINE_SNAPSHOT_ENABLED config for extraction pipeline stage snapshot output - Fix missing newline at end of env.example --- .gitignore | 3 +++ api/env.example | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a1896da7..28fdd384 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ cl100k_base.tiktoken libssl*.deb sandbox/lib/seccomp_redbear/target + +# Qoder repowiki generated content +.qoder/repowiki/zh/ diff --git a/api/env.example b/api/env.example index e324d1e5..a3748d23 100644 --- a/api/env.example +++ b/api/env.example @@ -142,5 +142,10 @@ SMTP_PASSWORD= GENERAL_ONTOLOGY_FILES=api/app/core/memory/ontology_services/General_purpose_entity.ttl # 指定要加载的本体文件路径,多个文件用逗号分隔 ENABLE_GENERAL_ONTOLOGY_TYPES=true # 总开关,控制是否启用通用本体类型融合功能(false = 不使用任何本体类型指导) MAX_ONTOLOGY_TYPES_IN_PROMPT=100 # 限制传给 LLM 的类型数量,防止 Prompt 过长 -CORE_GENERAL_TYPES=Person,Organization,Place,Event,Work,Concept # 定义核心类型列表,这些类型会优先包含在合并结果中 -ONTOLOGY_EXPERIMENT_MODE=true # 是否允许通过 API 动态切换本体配置 \ No newline at end of file + +# 核心类型白名单,与 ontology.md Entity Ontology 的 13 类保持一致 +CORE_GENERAL_TYPES=人物,组织,群体,角色职业,地点设施,物品设备,软件平台,识别联系信息,文档媒体,知识能力,偏好习惯,具体目标,称呼别名 +ONTOLOGY_EXPERIMENT_MODE=true # 是否允许通过 API 动态切换本体配置 + +# 萃取阶段快照:将每个阶段的输出保存到 logs/memory-output/snapshots/ +PIPELINE_SNAPSHOT_ENABLED=false