haiku.rag/haiku_rag_slim/haiku/rag
Yiorgis Gozadinos e8f00fcff4
Make get_config the only configuration lookup
haiku.rag.config exported two configuration instances: the lazy _config
behind get_config/set_config, and Config, loaded at import time. Nothing
linked them, and eleven signatures captured Config as a default argument,
so set_config could not reach the factories, the client, the store or the
MCP server. reranking/base.py went further and snapshotted the configured
reranker name into a class attribute at import.

Config is removed. Internal defaults are config: AppConfig | None = None,
resolved through get_config() per call. RerankerBase._model is None and
CohereReranker takes its model name as an argument, like every other
reranker.

The suite patched attributes on Config while production read the instance
get_config() returns, a different object, so those patches were no-ops
waiting to happen. They now go through get_config().
2026-08-19 14:43:40 +03:00
..
capabilities Lend the caller's client to the capability 2026-08-18 14:58:18 +03:00
chat Give the capsule to one return, and the run its own copy of state 2026-08-13 13:00:02 +03:00
chunkers Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
client Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
config Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
converters Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
embeddings Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
ingester Move ingester telemetry setup behind argument parsing 2026-08-13 11:37:36 +03:00
inspector Do not duplicate metadata items in inspector 2026-08-18 12:30:13 +02:00
providers Wire providers.docling_serve.timeout through to the client 2026-08-19 13:30:45 +03:00
reranking Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
sandbox Point the limit comments at the right limits 2026-07-28 19:11:37 +03:00
store Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
tools Move the wire rewrite into the compaction capability 2026-08-13 13:00:02 +03:00
__init__.py Restructure into uv workspace to support minimal and full installations 2025-11-04 17:59:12 +02:00
app.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +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 Batch context expansion across documents 2026-08-18 16:35:17 +03:00
doctor.py Fix defects found reviewing the coverage work 2026-07-27 10:44:32 +03:00
logging.py Restructure into uv workspace to support minimal and full installations 2025-11-04 17:59:12 +02:00
mcp.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
s3.py swap aioboto3 for obstore in the S3 client path 2026-05-11 11:29:42 +03:00
telemetry.py Route eval scripts through the shared telemetry configure 2026-07-10 11:38:33 +03:00
utils.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00