fastrag.retrieval.base#
The Retriever contract: turning a query into documents.
Classes
Turns one query into the documents that answer it, best first. |
- class fastrag.retrieval.base.Retriever[source]#
Bases:
ABCTurns one query into the documents that answer it, best first.
One method, one required argument. Every other knob —
k, filters, thresholds — is constructor configuration, so a retriever is a fully specified object that can be passed around, swapped, and benchmarked without its call sites knowing anything about it.