Index Guide (LLM/Agent)
Purpose: route questions to the smallest relevant file set with minimal token usage.
Read Order
- Read
kb/index/topics.jsonl(preferred) orkb/index/topics.csv. - Filter by
categoryand keywords. - Open only matched
file_pathMarkdown files. - Synthesize answer.
Do not scan all files first.
Categories
roles: character cardsrulebooks: rules and frameworksrecords: completed battle records
Index Fields
topic_id: forum topic idcategory: one ofroles | rulebooks | recordstitle: topic titleauthor: topic starter (or parsed first post author)created_at: first post time (forum format)fetched_at: local sync time (UTC+8)source_url: original forum topic URLfile_path: local markdown path to readstatus: sync status (updated,unchanged, optional warnings)
Query Routing Patterns
- Author style/profile questions:
- filter
author == <name> -
start with
roles, thenrecordsfor behavior evidence -
Character performance across battles:
- filter
category == records -
match character name in
titleand body -
Rule/system/model issues:
- start with
rulebooks - validate with examples in
records
Data Quality Notes
- If spoiler permission failed during sync, see
kb/index/warnings.txt. - Media files are intentionally excluded; text only.