haiku.rag/docs
Yiorgis Gozadinos d97aa15af9
Keep footnotes and matched items in expanded context
_build_result applied the noise-label filter to every item in the range,
including the ones the result matched on. A hit on a footnote or index
entry returned its section with the matched text removed, the clip anchor
could not find the evidence and fell back to a prefix window, and the
un-merge path rebuilt through the same filter.

Noise is now a set of positions computed once per group by
_noise_positions: noise-labelled items minus the matched ones.
_expand_outward and _build_result take that set instead of a flag, so the
matched item is kept in content and counted toward the budget.

Footnotes leave the noise set. They carry sources, cross-references and
clarifications, and docling attaches table and figure footnotes to the
table itself, so the filter was dropping part of the table. The noise set
is page_header, page_footer and document_index.

Refs #609
2026-09-07 13:52:14 +03:00
..
capabilities Align the MCP guidance with the analysis instructions and move to Monty 0.0.23 2026-09-07 12:02:33 +03:00
configuration Keep footnotes and matched items in expanded context 2026-09-07 13:52:14 +03:00
img Add ingester screenshot 2026-05-27 15:53:01 +03:00
stylesheets Landing page hero with TUI screen recording 2026-05-20 16:56:25 +03:00
apps.md Remove the environment overrides and the last unnamed-database wording 2026-09-03 15:12:09 +03:00
benchmarks.md Document vector index state and measured cost 2026-09-01 15:19:13 +03:00
changelog.md Improve documentation 2025-11-28 13:10:03 +02:00
chat.md Update caps documentation 2026-08-13 14:08:14 +03:00
cli.md Replace ask_question and analyze with execute_code 2026-09-07 10:02:42 +03:00
custom-pipelines.md Linting, doc edits 2026-08-18 12:18:10 +02:00
development.md Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
index.md Give the docs an architecture page and one extras list 2026-08-20 15:07:06 +03:00
ingester.md Give the docs an architecture page and one extras list 2026-08-20 15:07:06 +03:00
installation.md Give the docs an architecture page and one extras list 2026-08-20 15:07:06 +03:00
mcp.md One error contract for the MCP server 2026-09-07 13:14:16 +03:00
overview.md One reference and one placement for a database 2026-09-03 15:12:08 +03:00
python.md Keep footnotes and matched items in expanded context 2026-09-07 13:52:14 +03:00
remote-processing.md Wire providers.docling_serve.timeout through to the client 2026-08-19 13:30:45 +03:00
tools.md replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
tuning.md Keep footnotes and matched items in expanded context 2026-09-07 13:52:14 +03:00
tutorial.md Default to ollama:qwen3.8 2026-09-04 12:36:36 +03:00