File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 `full_text` frontmatter field with the path to the original document content:
2626 - Short documents (doc_type: short): read_file with that path.
2727 - PageIndex documents (doc_type: pageindex): use get_page_content(doc_name, pages)
28- to read specific pages. The summary shows document tree structure with page ranges.
29- 5. Synthesise a clear, well-cited answer grounded in wiki content.
28+ with tight page ranges. The summary shows document tree structure with page
29+ ranges to help you target. Never fetch the whole document.
30+ 5. Synthesize a clear, well-cited answer grounded in wiki content.
3031
31- Before each tool call, briefly state what you are about to do.
32+ Answer based only on wiki content. Before each tool call, briefly state what you
33+ are about to do. Be concise.
3234
3335If you cannot find relevant information, say so clearly.
3436"""
Original file line number Diff line number Diff line change @@ -257,14 +257,20 @@ def init():
257257
258258 # Interactive prompts
259259 model = click .prompt (
260- "Model (e.g. gpt-5.4, anthropic/claude-sonnet-4-6, gemini/gemini-3.1-pro-preview) " ,
260+ f "Model (e.g. gpt-5.4, anthropic/claude-sonnet-4-6) [default: { DEFAULT_CONFIG [ 'model' ] } ] " ,
261261 default = DEFAULT_CONFIG ["model" ],
262+ show_default = False ,
263+ )
264+ language = click .prompt (
265+ f"Language [default: { DEFAULT_CONFIG ['language' ]} ]" ,
266+ default = DEFAULT_CONFIG ["language" ],
267+ show_default = False ,
262268 )
263- language = click .prompt ("Language" , default = DEFAULT_CONFIG ["language" ])
264269 pageindex_threshold = click .prompt (
265- "PageIndex threshold (pages)" ,
270+ f "PageIndex threshold (pages) [default: { DEFAULT_CONFIG [ 'pageindex_threshold' ] } ] " ,
266271 default = DEFAULT_CONFIG ["pageindex_threshold" ],
267272 type = int ,
273+ show_default = False ,
268274 )
269275 # Create directory structure
270276 Path ("raw" ).mkdir (exist_ok = True )
@@ -295,7 +301,7 @@ def init():
295301 # Register this KB in the global config
296302 register_kb (Path .cwd ())
297303
298- click .echo ("Knowledge base initialised ." )
304+ click .echo ("Knowledge base initialized ." )
299305
300306
301307@cli .command ()
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def _read_md(path: Path) -> str:
2929def _all_wiki_pages (wiki : Path ) -> dict [str , Path ]:
3030 """Return a mapping of stem/relative-path → absolute Path for all .md files.
3131
32- Keys are normalised : 'concepts/attention', 'summaries/paper', 'index', etc.
32+ Keys are normalized : 'concepts/attention', 'summaries/paper', 'index', etc.
3333 """
3434 pages : dict [str , Path ] = {}
3535 for md in wiki .rglob ("*.md" ):
You can’t perform that action at this time.
0 commit comments