agrag.retrieval.retrievers.base.Retriever
Bases: ABC
One retrieval method: given a query, return SearchResults.
Subclasses own exactly one strategy (dense entity search, chunk search, BFS expansion). SearchEngine fans a query out to every Retriever a Recipe names and hands the combined output to Fusion.
Functions:
- retrieve – Run this retrieval method and return loaded results.
Attributes:
- name (
str) –
name
name: str
retrieve
retrieve(query:str, *, filters:SearchFilters | None = None, limit:int = 10) -> list[SearchResult]
Run this retrieval method and return loaded results.