> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 检索器集成

> 使用 LangChain Python 与检索器集成。

[检索器](/oss/python/langchain/retrieval#building-blocks) 是一个接口，它根据非结构化查询返回文档。
它比向量存储更通用。
检索器不需要能够存储文档，只需要能够返回（或检索）它们。
检索器可以从向量存储创建，但也足够广泛，可以包括 [Wikipedia 搜索](/oss/python/integrations/retrievers/wikipedia/) 和 [Amazon Kendra](/oss/python/integrations/retrievers/amazon_kendra_retriever/)。

检索器接受字符串查询作为输入，并返回一个 [`Document`](https://reference.langchain.com/python/langchain-core/documents/base/Document) 对象列表作为输出。

请注意，所有 [向量存储](/oss/python/integrations/vectorstores) 都可以转换为检索器。有关可用的向量存储，请参阅向量存储 [集成文档](/oss/python/integrations/vectorstores/)。
本页列出了通过继承 BaseRetriever 实现的自定义检索器。

## 自带文档

以下检索器允许您索引和搜索自定义文档语料库。

| 检索器                                                                                      | 自托管 | 云服务 | 包                                                                                                                                          |
| ---------------------------------------------------------------------------------------- | --- | --- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [`AmazonKnowledgeBasesRetriever`](/oss/python/integrations/retrievers/bedrock)           | ❌   | ✅   | [`langchain-aws`](https://reference.langchain.com/python/langchain-aws/retrievers/bedrock/AmazonKnowledgeBasesRetriever)                   |
| [`AzureAISearchRetriever`](/oss/python/integrations/retrievers/azure_ai_search)          | ❌   | ✅   | [`langchain-community`](https://reference.langchain.com/python/langchain-community/retrievers/azure_ai_search/AzureAISearchRetriever)      |
| [`ElasticsearchRetriever`](/oss/python/integrations/retrievers/elasticsearch_retriever)  | ✅   | ✅   | [`langchain-elasticsearch`](https://reference.langchain.com/python/langchain-elasticsearch/retrievers/ElasticsearchRetriever)              |
| [`NVIDIARAGRetriever`](/oss/python/integrations/retrievers/nvidia)                       | ✅   | ❌   | [`langchain-nvidia-ai-endpoints`](https://reference.langchain.com/python/langchain-nvidia-ai-endpoints/retrievers/NVIDIARAGRetriever)      |
| [`VertexAISearchRetriever`](/oss/python/integrations/retrievers/google_vertex_ai_search) | ❌   | ✅   | [`langchain-google-community`](https://reference.langchain.com/python/langchain-google-community/vertex_ai_search/VertexAISearchRetriever) |

## 外部索引

以下检索器将搜索外部索引（例如，由互联网数据或类似数据构建）。

| 检索器                                                                                  | 来源                                                                                    | 包                                                                                                                                         |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [`ArxivRetriever`](/oss/python/integrations/retrievers/arxiv)                        | [arxiv.org](https://arxiv.org/) 上的学术文章                                                | [`langchain-community`](https://reference.langchain.com/python/langchain-community/retrievers/arxiv/ArxivRetriever)                       |
| [`ParallelSearchRetriever`](/oss/python/integrations/retrievers/parallel)            | 通过 [Parallel Search API](https://docs.parallel.ai/search/search-quickstart) 进行互联网搜索   | [`langchain-parallel`](https://reference.langchain.com/python/langchain-parallel/retrievers/ParallelSearchRetriever)                      |
| [`PerplexitySearchRetriever`](/oss/python/integrations/retrievers/perplexity_search) | 通过 [Perplexity Search API](https://docs.perplexity.ai/docs/search/quickstart) 进行互联网搜索 | [`langchain-perplexity`](https://reference.langchain.com/python/langchain-perplexity/retrievers/PerplexitySearchRetriever)                |
| [`TavilySearchAPIRetriever`](/oss/python/integrations/retrievers/tavily)             | 互联网搜索                                                                                 | [`langchain-community`](https://reference.langchain.com/python/langchain-community/retrievers/tavily_search_api/TavilySearchAPIRetriever) |
| [`WikipediaRetriever`](/oss/python/integrations/retrievers/wikipedia)                | [Wikipedia](https://www.wikipedia.org/) 文章                                            | [`langchain-community`](https://reference.langchain.com/python/langchain-community/retrievers/wikipedia/WikipediaRetriever)               |

## 所有检索器

<Columns cols={3}>
  <Card title="Activeloop Deep Memory" icon="link" href="/oss/python/integrations/retrievers/activeloop" arrow="true" cta="查看指南" />

  <Card title="Amazon Kendra" icon="link" href="/oss/python/integrations/retrievers/amazon_kendra_retriever" arrow="true" cta="查看指南" />

  <Card title="Arcee" icon="link" href="/oss/python/integrations/retrievers/arcee" arrow="true" cta="查看指南" />

  <Card title="Arxiv" icon="link" href="/oss/python/integrations/retrievers/arxiv" arrow="true" cta="查看指南" />

  <Card title="AskNews" icon="link" href="/oss/python/integrations/retrievers/asknews" arrow="true" cta="查看指南" />

  <Card title="Azure AI Search" icon="link" href="/oss/python/integrations/retrievers/azure_ai_search" arrow="true" cta="查看指南" />

  <Card title="Bedrock (Knowledge Bases)" icon="link" href="/oss/python/integrations/retrievers/bedrock" arrow="true" cta="查看指南" />

  <Card title="BM25" icon="link" href="/oss/python/integrations/retrievers/bm25" arrow="true" cta="查看指南" />

  <Card title="Box" icon="link" href="/oss/python/integrations/retrievers/box" arrow="true" cta="查看指南" />

  <Card title="BREEBS (Open Knowledge)" icon="link" href="/oss/python/integrations/retrievers/breebs" arrow="true" cta="查看指南" />

  <Card title="Chaindesk" icon="link" href="/oss/python/integrations/retrievers/chaindesk" arrow="true" cta="查看指南" />

  <Card title="ChatGPT plugin" icon="link" href="/oss/python/integrations/retrievers/chatgpt-plugin" arrow="true" cta="查看指南" />

  <Card title="Cognee" icon="link" href="/oss/python/integrations/retrievers/cognee" arrow="true" cta="查看指南" />

  <Card title="Cohere reranker" icon="link" href="/oss/python/integrations/retrievers/cohere-reranker" arrow="true" cta="查看指南" />

  <Card title="Cohere RAG" icon="link" href="/oss/python/integrations/retrievers/cohere" arrow="true" cta="查看指南" />

  <Card title="Contextual AI Reranker" icon="link" href="/oss/python/integrations/retrievers/contextual" arrow="true" cta="查看指南" />

  <Card title="Dappier" icon="link" href="/oss/python/integrations/retrievers/dappier" arrow="true" cta="查看指南" />

  <Card title="DocArray" icon="link" href="/oss/python/integrations/retrievers/docarray_retriever" arrow="true" cta="查看指南" />

  <Card title="Dria" icon="link" href="/oss/python/integrations/retrievers/dria_index" arrow="true" cta="查看指南" />

  <Card title="ElasticSearch BM25" icon="link" href="/oss/python/integrations/retrievers/elastic_search_bm25" arrow="true" cta="查看指南" />

  <Card title="Elasticsearch" icon="link" href="/oss/python/integrations/retrievers/elasticsearch_retriever" arrow="true" cta="查看指南" />

  <Card title="Egnyte" icon="link" href="/oss/python/integrations/retrievers/egnyte" arrow="true" cta="查看指南" />

  <Card title="Embedchain" icon="link" href="/oss/python/integrations/retrievers/embedchain" arrow="true" cta="查看指南" />

  <Card title="FlashRank reranker" icon="link" href="/oss/python/integrations/retrievers/flashrank-reranker" arrow="true" cta="查看指南" />

  <Card title="Fleet AI Context" icon="link" href="/oss/python/integrations/retrievers/fleet_context" arrow="true" cta="查看指南" />

  <Card title="Galaxia" icon="link" href="/oss/python/integrations/retrievers/galaxia-retriever" arrow="true" cta="查看指南" />

  <Card title="Google Drive" icon="link" href="/oss/python/integrations/retrievers/google_drive" arrow="true" cta="查看指南" />

  <Card title="Google Vertex AI Search" icon="link" href="/oss/python/integrations/retrievers/google_vertex_ai_search" arrow="true" cta="查看指南" />

  <Card title="Graph RAG" icon="link" href="/oss/python/integrations/retrievers/graph_rag" arrow="true" cta="查看指南" />

  <Card title="GreenNode" icon="link" href="/oss/python/integrations/retrievers/greennode_reranker" arrow="true" cta="查看指南" />

  <Card title="IBM watsonx.ai" icon="link" href="/oss/python/integrations/retrievers/ibm_watsonx_ranker" arrow="true" cta="查看指南" />

  <Card title="JaguarDB Vector Database" icon="link" href="/oss/python/integrations/retrievers/jaguar" arrow="true" cta="查看指南" />

  <Card title="Kay.ai" icon="link" href="/oss/python/integrations/retrievers/kay" arrow="true" cta="查看指南" />

  <Card title="Kinetica Vectorstore" icon="link" href="/oss/python/integrations/retrievers/kinetica" arrow="true" cta="查看指南" />

  <Card title="kNN" icon="link" href="/oss/python/integrations/retrievers/knn" arrow="true" cta="查看指南" />

  <Card title="LinkupSearchRetriever" icon="link" href="/oss/python/integrations/retrievers/linkup_search" arrow="true" cta="查看指南" />

  <Card title="LLMLingua Document Compressor" icon="link" href="/oss/python/integrations/retrievers/llmlingua" arrow="true" cta="查看指南" />

  <Card title="LOTR (Merger Retriever)" icon="link" href="/oss/python/integrations/retrievers/merger_retriever" arrow="true" cta="查看指南" />

  <Card title="Metal" icon="link" href="/oss/python/integrations/retrievers/metal" arrow="true" cta="查看指南" />

  <Card title="NanoPQ (Product Quantization)" icon="link" href="/oss/python/integrations/retrievers/nanopq" arrow="true" cta="查看指南" />

  <Card title="Nebius" icon="link" href="/oss/python/integrations/retrievers/nebius" arrow="true" cta="查看指南" />

  <Card title="needle" icon="link" href="/oss/python/integrations/retrievers/needle" arrow="true" cta="查看指南" />

  <Card title="Nimble Extract" icon="link" href="/oss/python/integrations/retrievers/nimble_extract" arrow="true" cta="查看指南" />

  <Card title="Nimble Search" icon="link" href="/oss/python/integrations/retrievers/nimble_search" arrow="true" cta="查看指南" />

  <Card title="NVIDIA RAG Blueprint" icon="link" href="/oss/python/integrations/retrievers/nvidia" arrow="true" cta="查看指南" />

  <Card title="Outline" icon="link" href="/oss/python/integrations/retrievers/outline" arrow="true" cta="查看指南" />

  <Card title="Parallel Search" icon="link" href="/oss/python/integrations/retrievers/parallel" arrow="true" cta="查看指南" />

  <Card title="Permit" icon="link" href="/oss/python/integrations/retrievers/permit" arrow="true" cta="查看指南" />

  <Card title="Perplexity Search" icon="link" href="/oss/python/integrations/retrievers/perplexity_search" arrow="true" cta="查看指南" />

  <Card title="Pinecone Hybrid Search" icon="link" href="/oss/python/integrations/retrievers/pinecone_hybrid_search" arrow="true" cta="查看指南" />

  <Card title="Pinecone Rerank" icon="link" href="/oss/python/integrations/retrievers/pinecone_rerank" arrow="true" cta="查看指南" />

  <Card title="PubMed" icon="link" href="/oss/python/integrations/retrievers/pubmed" arrow="true" cta="查看指南" />

  <Card title="Qdrant Sparse Vector" icon="link" href="/oss/python/integrations/retrievers/qdrant-sparse" arrow="true" cta="查看指南" />

  <Card title="RAGatouille" icon="link" href="/oss/python/integrations/retrievers/ragatouille" arrow="true" cta="查看指南" />

  <Card title="RePhraseQuery" icon="link" href="/oss/python/integrations/retrievers/re_phrase" arrow="true" cta="查看指南" />

  <Card title="Rememberizer" icon="link" href="/oss/python/integrations/retrievers/rememberizer" arrow="true" cta="查看指南" />

  <Card title="SEC filing" icon="link" href="/oss/python/integrations/retrievers/sec_filings" arrow="true" cta="查看指南" />

  <Card title="SpiceDB" icon="link" href="/oss/python/integrations/retrievers/spicedb" arrow="true" cta="查看指南" />

  <Card title="SVM" icon="link" href="/oss/python/integrations/retrievers/svm" arrow="true" cta="查看指南" />

  <Card title="TavilySearchAPI" icon="link" href="/oss/python/integrations/retrievers/tavily" arrow="true" cta="查看指南" />

  <Card title="TF-IDF" icon="link" href="/oss/python/integrations/retrievers/tf_idf" arrow="true" cta="查看指南" />

  <Card title="NeuralDB" icon="link" href="/oss/python/integrations/retrievers/thirdai_neuraldb" arrow="true" cta="查看指南" />

  <Card title="ValyuContext" icon="link" href="/oss/python/integrations/retrievers/valyu" arrow="true" cta="查看指南" />

  <Card title="Vectorize" icon="link" href="/oss/python/integrations/retrievers/vectorize" arrow="true" cta="查看指南" />

  <Card title="Vespa" icon="link" href="/oss/python/integrations/retrievers/vespa" arrow="true" cta="查看指南" />

  <Card title="Wikipedia" icon="link" href="/oss/python/integrations/retrievers/wikipedia" arrow="true" cta="查看指南" />

  <Card title="You.com" icon="link" href="/oss/python/integrations/retrievers/you-retriever" arrow="true" cta="查看指南" />

  <Card title="Zep Cloud" icon="link" href="/oss/python/integrations/retrievers/zep_cloud_memorystore" arrow="true" cta="查看指南" />

  <Card title="Zep Open Source" icon="link" href="/oss/python/integrations/retrievers/zep_memorystore" arrow="true" cta="查看指南" />

  <Card title="Zotero" icon="link" href="/oss/python/integrations/retrievers/zotero" arrow="true" cta="查看指南" />
</Columns>

***

<div className="source-links">
  <Callout icon="terminal-2">
    [将这些文档连接](/use-these-docs) 到 Claude、VSCode 等，通过 MCP 获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/retrievers/index.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
