> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-zh.cn/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)                       |
| [`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 深度记忆" 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 (知识库)" 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 (开放知识)" 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 插件" 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 重排序器" 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="上下文 AI 重排序器" 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 重排序器" icon="link" href="/oss/python/integrations/retrievers/flashrank-reranker" arrow="true" cta="查看指南" />

  <Card title="Fleet AI 上下文" 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 向量数据库" 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 向量存储" 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 文档压缩器" icon="link" href="/oss/python/integrations/retrievers/llmlingua" arrow="true" cta="查看指南" />

  <Card title="LOTR (合并检索器)" 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 (产品量化)" 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 蓝图" 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="Permit" icon="link" href="/oss/python/integrations/retrievers/permit" arrow="true" cta="查看指南" />

  <Card title="Pinecone 混合搜索" icon="link" href="/oss/python/integrations/retrievers/pinecone_hybrid_search" arrow="true" cta="查看指南" />

  <Card title="Pinecone 重排序" 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 稀疏向量" 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 备案" 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 开源版" 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="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\retrievers\index.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
