autorag.retrieve¶
Vector-similarity retrieval over an ingested corpus.
Composes an Embedder (to encode the query) with
a VectorStore (to do the nearest-neighbour
lookup) so that the choice of embedding model and backing store can
vary independently.
- class autorag.retrieve.Retriever(store, embedder)[source]¶
Bases:
objectEmbed a question and pull the
top_kmost similar chunks.- Parameters:
store (
VectorStore)embedder (
Embedder)