haiku.rag/haiku_rag_slim/haiku/rag/client
Yiorgis Gozadinos 971ec0a5b0
Coerce a string db_path to Path at the Store and capability boundaries
The documented `HaikuRAG("knowledge.lancedb")` and `rag(db_path="my.lancedb")`
forms both raised `AttributeError: 'str' object has no attribute 'exists'`.
`Store.__init__` assigned its argument to a `Path`-annotated attribute without
coercing, and `resolve_db_path` returned a non-None argument unchanged. Every
runnable example wraps the path in `Path(...)`, which is why it survived.

Coerce in `Store.__init__` and `resolve_db_path`; widen the annotations on
`Store`, `HaikuRAG` and both `create_capability` factories to accept `str`.
2026-08-21 12:49:45 +03:00
..
__init__.py Coerce a string db_path to Path at the Store and capability boundaries 2026-08-21 12:49:45 +03:00
agents.py Lend the caller's client to the capability 2026-08-18 14:58:18 +03:00
documents.py Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
downloads.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
exceptions.py typed UnsupportedSourceError replaces pipeline string-marker matching 2026-05-26 11:44:46 +03:00
processing.py Resolve file:// URIs to paths through url2pathname 2026-08-21 10:22:26 +03:00
rebuild.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
search.py Delete comments that restate the line below them 2026-08-20 15:22:33 +03:00
titles.py Extract title generation into client/titles.py 2026-04-24 14:42:53 +03:00