haiku.rag/tests/chat
Yiorgis Gozadinos 71e4e4a40a
Resolve a capability's databases once, into a scope
`resolve_db_path` manufactured the default path whenever `lancedb.databases`
was empty, and `covers_several_databases` read coverage back out of the
configuration, so a capability built without a client opened
`storage.data_dir/haiku.rag.lancedb` instead of what `lancedb.uri` placed.
The entry point resolves a `DatabaseScope` instead: instructions ask it what
it covers and `_ensure_rag` opens it through `HaikuRAG._covering`, so
coverage is decided once rather than encoded in a path and re-derived.
`Sandbox._covering` takes the scope the capability already resolved, beside
the public constructor that takes a path. The factory signatures are
unchanged.
2026-08-26 12:20:21 +03:00
..
__init__.py CLI app 2026-01-13 11:31:21 +02:00
test_chat_app.py Resolve a capability's databases once, into a scope 2026-08-26 12:20:21 +03:00
test_image_input.py Resolve the databases a command works on, once 2026-08-25 15:48:47 +03:00