haiku.rag/haiku_rag_slim/haiku/rag
Yiorgis Gozadinos ed5519b38d
Make the documented configuration match the code
search.limit was documented as 10 in three places while the default is 5.
The documented way to disable reranking, provider: "", is a valid
ModelConfig, so it raised "Unknown reranking provider" — disabling means
omitting reranking.model or setting it to null. The inline provider list
named four of the six rerankers. prompts.picture_description: null fails
validation, since the field is a non-optional str.

storage.data_dir: "" coerced to Path("") — the working directory — while two
doc pages promise the platform default and soliplex's example config relies
on it. Empty or whitespace now resolves to the platform directory; an
explicit "." is still honoured, so a config that wants the working directory
says so.

Three tests keep this from drifting again: every fenced yaml block in the
docs validates against AppConfig, every value in the complete example either
equals its default or is listed as a deliberate deviation, and empty
data_dir resolves to the platform default.

init-config's test reimplemented the command body instead of invoking it,
which is why the command carried a coverage pragma. It now goes through
CliRunner, with the refuse-to-overwrite guard covered too.
2026-08-19 15:52:50 +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 the documented configuration match the code 2026-08-19 15:52:50 +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 Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +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
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 Make the documented configuration match the code 2026-08-19 15:52:50 +03: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
mcp.py Make get_config the only configuration lookup 2026-08-19 14:43:40 +03:00
s3.py
telemetry.py Route eval scripts through the shared telemetry configure 2026-07-10 11:38:33 +03:00
utils.py Reject unknown and out-of-range configuration values 2026-08-19 15:32:51 +03:00