retrievers#

Retrievers provide an interface to search and retrieve relevant documents from a data source.

Retrievers abstract the logic of querying underlying data stores (such as vector stores, search engines, or databases) and returning documents most relevant to a user’s query. They are commonly used to power search, question answering, and RAG (Retrieval-Augmented Generation) workflows.

Class hierarchy:

BaseRetriever --> VectorStoreRetriever --> <name>Retriever  # Example: AzureAISearchRetriever

Main helpers:

Document, Query

Classes

retrievers.azure_ai_search.AzureAISearchRetriever

Azure AI Search service retriever.

retrievers.azure_ai_search.AzureCognitiveSearchRetriever

Azure Cognitive Search service retriever.