> ## 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.

# Amazon Kendra 集成

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

> [Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/what-is-kendra.html) 是由 `Amazon Web Services` (`AWS`) 提供的一项智能搜索服务。它利用先进的自然语言处理 (NLP) 和机器学习算法，使组织内的各种数据源具备强大的搜索功能。`Kendra` 旨在帮助用户快速、准确地找到所需信息，提高生产力和决策能力。

> 使用 `Kendra`，用户可以搜索广泛的内容类型，包括文档、常见问题解答 (FAQ)、知识库、手册和网站。它支持多种语言，能够理解复杂的查询、同义词和上下文含义，从而提供高度相关的搜索结果。

## 使用 Amazon Kendra 索引检索器

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
pip install -qU  boto3
```

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_community.retrievers import AmazonKendraRetriever
```

创建新检索器

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
retriever = AmazonKendraRetriever(index_id="c0806df7-e76b-4bce-9b5c-d5582f6b1a03")
```

现在您可以使用来自 Kendra 索引的检索文档

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
retriever.invoke("what is langchain")
```

***

<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\amazon_kendra_retriever.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>
