Indexed docs and feedback
Unify how-to articles and skill documents into a two-layer index, so the system can retrieve the right content quickly before answering or acting, then keep improving answer qualit
Source docs/en/site/mech-index-loop.md
Mechanism goal
Unify how-to articles and skill documents into a two-layer index, so the system can retrieve the right content quickly before answering or acting, then keep improving answer quality from real conversation feedback — a knowledge loop that can evolve over time.
Canonical-body rule: Human-written how-to / skill bodies are the authoritative original. The feedback loop does not rewrite those originals. Improvements land on overlay layers such as answer supplements, workspace skills, and retrieval indexes (see 记忆锻造/记忆锻造.md).
For implementation and runtime detail, see 记忆锻造/记忆锻造.md.
How documents are organized (two layers)
- First layer: root index
A catalog at the knowledge root that marks each theme subdirectory.
- Second layer: subdirectory index
Each theme folder has a second-level index that points to specific how-to or skill documents.
- Content files
Each theme may contain one or more documents with the real rules, steps, constraints, and examples.
- Answer supplements (overlay, optional)
Documents created after Memory Forge adopts a proposal, stored in a separate directory from the original. Retrieval merges them with the original; on conflict the original wins.
Retrieve and execute
- The user asks a question or requests an action.
- The system first searches the root index and picks candidate theme folders.
- It then searches those subdirectory indexes and locates one or more most relevant documents (including overlay supplements, if configured).
- Hit content is provided to the model as context.
- The model uses that context for two kinds of work:
- answering the user’s question; - executing the request by the rules (for example skill-driven actions).
User feedback and data
- Users rate whether the answer or the action was good.
- Users may offer a better method or extra explanation.
- The full conversation is recorded and archived.
Closed-loop improvement rules
- Conversation feedback should be analyzed on a schedule to find high-value improvements (MemoryForge scan).
- Suggestions should become new content or index improvements, not a patch of the original:
- missing content → create an answer supplement; - missing steps → create a workspace skill; - retrieval miss → improve index.json aliases / tags; - wording already stable → archive a verified answer.
- Changes to the original still go through human PRs / admin process.
- After updating overlays or indexes, keep watching whether answers and execution actually get better.
Closed-loop result
Through “index retrieval → answer/execute with context → user feedback → overlay/index update”, the system gets better with use. That is a durable, document-driven improvement loop, while human originals stay auditable and authoritative.
Related mechanisms
- AI重建知识索引规则.md (generate two-layer
index.jsonwith AI) - 智能体调用知识文档的方式.md (how conversation consumes knowledge)
- 记忆锻造/记忆锻造.md
- 智能体对话编排.md (how material selection calls the two-layer indexes)