haiku.rag/tests
Yiorgis Gozadinos 2bfb661c10
Pin the over-fetch rule, and assert the type a lookup raises
`_fetch_limit` had no test: a text query over-fetches `limit * 10` only with a
reranker, and an image query keeps its vector ranking either way. The sandbox
test asserted `KeyError`, which `UnknownDatabaseError` subclasses, so it could
not tell the contract from a bare one.

`uses_configured_databases` documents a mapping of one as covered; the test
named for it passed no mapping at all. Its `config` parameter is an `AppConfig`.

`test_an_analysis_capability_mounts_the_configured_set` carried a VCR marker and
no cassette, making no HTTP calls.
2026-08-28 14:03:13 +03:00
..
capabilities Name the collection on a retrieved image, not only in the text 2026-08-28 12:02:16 +03:00
cassettes Render collection identity only for multi-collection searches 2026-08-27 12:41:05 +03:00
chat Name the collection a chat citation came from 2026-08-28 13:30:11 +03:00
data
docker
ingester Translate every database-opening failure in haiku-ingester 2026-08-28 09:59:37 +03:00
multi_db Pin the over-fetch rule, and assert the type a lookup raises 2026-08-28 14:03:13 +03:00
sandbox Pin the over-fetch rule, and assert the type a lookup raises 2026-08-28 14:03:13 +03:00
sources Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
store Cite a repeated chunk from its last occurrence 2026-08-27 13:25:06 +03:00
tools Name the collection on a retrieved image, not only in the text 2026-08-28 12:02:16 +03:00
__init__.py
conftest.py Resolve the databases a command works on, once 2026-08-25 15:48:47 +03:00
json_body_serializer.py Keep cross-encoder rerank scores apart when they saturate 2026-08-07 14:07:53 +03:00
services.py
test_app.py Name what a command calls its database, and whether it exists 2026-08-28 14:02:56 +03:00
test_ask_images.py Accept images on ask/analyze 2026-07-25 10:23:55 +03:00
test_cascade_delete.py Resolve the databases a command works on, once 2026-08-25 15:48:47 +03:00
test_chunk.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
test_chunker.py Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00
test_cli.py Let a config-only command work on no database 2026-08-27 18:04:28 +03:00
test_client.py Compose a set out of single-database sessions 2026-08-25 08:56:09 +03:00
test_client_analyze.py
test_config.py Make the documented configuration match the code 2026-08-19 15:52:50 +03:00
test_context.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_context_enhancement.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_converters.py Add per-endpoint api_key to model and embedding config 2026-08-23 23:54:40 +03:00
test_database_autocreate.py Drop the indirection around what a client covers 2026-08-26 13:34:09 +03:00
test_database_scope.py Answer for an unknown database name with one type 2026-08-27 18:04:27 +03:00
test_docling_serve_client.py Wire providers.docling_serve.timeout through to the client 2026-08-19 13:30:45 +03:00
test_doctor.py Add per-endpoint api_key to model and embedding config 2026-08-23 23:54:40 +03:00
test_document.py Load document blobs only when asked 2026-08-06 13:04:51 +03:00
test_download_models.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
test_duplicate_ingestion.py
test_embedder.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
test_embedder_config.py Add per-endpoint api_key to model and embedding config 2026-08-23 23:54:40 +03:00
test_enrichment_batching.py Stop the reranker fetch reading text it discards 2026-08-18 18:00:00 +03:00
test_filter.py
test_info.py Name the example databases as the documentation does 2026-08-27 11:06:34 +03:00
test_inspector.py Render database names and failures verbatim in the inspector 2026-08-28 14:02:50 +03:00
test_lancedb_connection.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
test_logging.py
test_mcp.py Let the MCP server be told which database once 2026-08-27 15:41:03 +03:00
test_pdf_attachments.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_pdf_concurrency.py
test_pdf_split.py Cover MCP, ingester and converter error paths 2026-07-26 19:14:26 +03:00
test_picture_description.py
test_picture_in_context.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_processing.py Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
test_reader.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
test_rebuild.py Resolve the databases a command works on, once 2026-08-25 15:48:47 +03:00
test_reranker.py Add per-endpoint api_key to model and embedding config 2026-08-23 23:54:40 +03:00
test_s3_integration.py Point the S3 integration tests back at S3 2026-08-26 12:53:52 +03:00
test_s3_source.py
test_search.py Build one reranker for the databases searched together 2026-08-27 17:07:41 +03:00
test_search_phases.py Resolve the search type once per search 2026-08-24 15:28:21 +03:00
test_settings.py Move ConfigMismatchError to the store exceptions module 2026-08-24 10:03:46 +03:00
test_telemetry.py
test_title_generation.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_uri.py Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
test_utils.py Leave no database reading when a federated fan-out fails 2026-08-28 12:02:07 +03:00
test_vacuum_debounce.py Type writing against one database 2026-08-25 10:09:23 +03:00
test_versioning.py Ask the session which database an operation works on 2026-08-25 09:28:20 +03:00