Commit 7a21b11
authored
engine: wire LLM TOC builder in cmd/engine (toc_tree was always NULL) (#44)
cmd/engine's Pipeline construction set HyDE + SummaryAxes but never set
TOCEnabled/TOCModel/TOCConcurrency/TOCCheckPages, so Pipeline.TOCEnabled
defaulted to false, runTOCBuilder never ran, and documents.toc_tree stayed
NULL on the standalone engine — the binary the OSS launch, --local mode, and
the Docker image all use. That silently disabled the treewalk citation
title_path (HAL-70): BuildHeadingPaths got an empty TOC and returned nothing.
cmd/server already wired these; this mirrors it. Also surfaces ingest_mode +
toc_enabled in the startup log so a misconfig is visible at boot.
Closes HAL-317.1 parent 80f7110 commit 7a21b11
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
202 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
| |||
0 commit comments