cookbook.stores¶
cookbook.stores
¶
Thin wrappers over Qdrant, LanceDB, and Chroma with one identical API.
The point: every recipe uses the same .add() / .search() / .hybrid_search()
signatures, so swapping vector stores is a one-line change. The wrappers are
intentionally minimal — they expose only what the recipes need, no plumbing
for sharding, replication, or schema migrations.
Hit
dataclass
¶
VectorBackend
¶
Bases: ABC
Shared API across Qdrant, LanceDB, and Chroma backends.
Source code in cookbook/stores.py
hybrid_search(query_vector, query_text, top_k=5)
¶
Default fallback: dense only. Backends that support sparse override.