Parameters
retrievers – A list of retrievers to merge.
async aget_relevant_documents(query: str) → List[langchain.schema.Document][source]#
Asynchronously get the relevant documents for a given query.
Parameters
query – The query to search for.
Returns
A list of relevant documents.
async amerge_documents(query: str) → List[langchain.schema.Document][source]#
Asynchronously merge the results of the retrievers.
Parameters
query – The query to search for.
Returns
A list of merged documents.
get_relevant_documents(query: str) → List[langchain.schema.Document][source]#
Get the relevant documents for a given query.
Parameters
query – The query to search for.
Returns
A list of relevant documents.
merge_documents(query: str) → List[langchain.schema.Document][source]#
Merge the results of the retrievers.
Parameters
query – The query to search for.
Returns
A list of merged documents.
class langchain.retrievers.MetalRetriever(client: Any, params: Optional[dict] = None)[source]#
async aget_relevant_documents(query: str) → List[langchain.schema.Document][source]#
Get documents relevant for a query.
Parameters
query – string to find relevant documents for
Returns
List of relevant documents
get_relevant_documents(query: str) → List[langchain.schema.Document][source]#
Get documents relevant for a query.
Parameters
query – string to find relevant documents for
Returns
List of relevant documents
pydantic model langchain.retrievers.PineconeHybridSearchRetriever[source]#
field alpha: float = 0.5#
field embeddings: langchain.embeddings.base.Embeddings [Required]#
field index: Any = None#
rtdocs_stable/api.python.langchain.com/en/stable/reference/modules/retrievers.html