haiku.rag/tests/multi_db
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 Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
conftest.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
helpers.py Split the multi-database tests by subject 2026-08-26 13:43:53 +03:00
test_capabilities.py Name the collection on a retrieved image, not only in the text 2026-08-28 12:02:16 +03:00
test_citations.py Make three tests assert what they are about 2026-08-27 18:04:28 +03:00
test_documents.py Read a document, chunk or picture from the database that names it 2026-08-28 13:30:05 +03:00
test_expansion.py Make three tests assert what they are about 2026-08-27 18:04:28 +03:00
test_lifecycle.py Fix a client's coverage when it is first entered 2026-08-28 13:29:16 +03:00
test_scope.py Answer for an unknown database name with one type 2026-08-27 18:04:27 +03:00
test_search.py Make three tests assert what they are about 2026-08-27 18:04:28 +03:00