haiku.rag/haiku_rag_slim/haiku/rag/tools
Yiorgis Gozadinos 590719fca7
Read a document, chunk or picture from the database that names it
`resolve_document` and `find_document` selected a document through a listing,
then dropped its source and looked the id up across the set. Ids repeat between
copies of a database, so a title that matched in one could be answered by
another's document.

`get_document_by_id` and `get_chunk_by_id` join `get_picture_bytes` in taking an
optional `source`, and all three route it through `clients_covering`, so a name
the client does not cover raises `UnknownDatabaseError` rather than being
answered by the database it does cover. Without a source the reads are as they
were, answering from the first database in configured order that holds the id.
2026-08-28 13:30:05 +03:00
..
__init__.py Select documents to filter by id, not by displayed name 2026-08-24 15:27:59 +03:00
context.py Simplify tools/ — remove AG-UI state machinery, keep core toolsets 2026-02-20 16:36:48 +02:00
document.py Read a document, chunk or picture from the database that names it 2026-08-28 13:30:05 +03:00
filters.py Say which commands cover a set, and what a shared id does 2026-08-26 13:03:58 +03:00
search.py Name the collection on a retrieved image, not only in the text 2026-08-28 12:02:16 +03:00