haiku.rag/haiku_rag_slim/haiku/rag
Yiorgis Gozadinos fa0c4a4f50
Treat an unfinished history tail as a continuation too
deferred_tool_results may arrive with a non-empty prompt, so the absence of a
prompt cannot be the only test for a resumption. Reproduced: resuming a live
question that way replaced its search result with the earlier-question notice
while the deferred result arrived alongside it.

_is_resumption accepts either signal — no prompt, or a history ending with a
request the model has not answered or a response whose tool calls have no
returns. A settled history ends with the previous answer, so a genuinely new
question is unaffected.

A new prompt on top of an unanswered tail is ambiguous and now counts as a
continuation: compacting costs the answer if it is one, while not compacting
only costs a larger request.
2026-08-13 13:00:01 +03:00
..
capabilities Treat an unfinished history tail as a continuation too 2026-08-13 13:00:01 +03:00
chat Constrain the chat prompt container height 2026-07-25 14:40:40 +03:00
chunkers Fail docling-serve requests over to another instance with per-instance breaking 2026-07-08 11:03:44 +03:00
client Stop loading page rasters on the title and update paths 2026-08-06 13:04:51 +03:00
config replace haiku.skills with native Pydantic AI capabilities 2026-07-24 15:26:17 +03:00
converters Reuse the local docling converter across documents 2026-08-13 11:39:01 +03:00
embeddings Pool HTTP clients for vLLM embedding and vLLM/Jina reranking 2026-07-09 10:32:44 +03:00
ingester Move ingester telemetry setup behind argument parsing 2026-08-13 11:37:36 +03:00
inspector Surface database-open errors in the TUIs 2026-07-25 11:27:29 +03:00
providers Emit a docling_serve.request span per instance attempt 2026-07-10 11:16:27 +03:00
reranking Keep cross-encoder rerank scores apart when they saturate 2026-08-07 14:07:53 +03:00
sandbox Point the limit comments at the right limits 2026-07-28 19:11:37 +03:00
store Name the search result each page image belongs to 2026-08-13 13:00:01 +03:00
tools Name the search result each page image belongs to 2026-08-13 13:00:01 +03:00
__init__.py
app.py Accept images on CLI ask/analyze and MCP tools 2026-07-25 10:35:25 +03:00
circuit_breaker.py Move CircuitBreaker to a shared module 2026-07-08 11:03:30 +03:00
cli.py Stop eagerly importing Store from haiku.rag.store 2026-08-11 17:26:51 +01:00
context.py Remove unreachable code and fix two defects it surfaced 2026-07-26 18:45:48 +03:00
doctor.py Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
logging.py
mcp.py Cover MCP, ingester and converter error paths 2026-07-26 19:14:26 +03:00
s3.py
telemetry.py Route eval scripts through the shared telemetry configure 2026-07-10 11:38:33 +03:00
utils.py Map thinking onto Pydantic AI's unified setting 2026-07-27 18:26:42 +03:00