`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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| helpers.py | ||
| test_capabilities.py | ||
| test_citations.py | ||
| test_documents.py | ||
| test_expansion.py | ||
| test_lifecycle.py | ||
| test_scope.py | ||
| test_search.py | ||