跳到主要内容
Amazon KendraAmazon Web Services (AWS) 提供的一项智能搜索服务。它利用先进的自然语言处理 (NLP) 和机器学习算法,在组织内的各种数据源中实现强大的搜索功能。Kendra 旨在帮助用户快速准确地找到所需信息,从而提高生产力并改善决策。
通过 Kendra,用户可以搜索各种内容类型,包括文档、常见问题、知识库、手册和网站。它支持多种语言,并且能够理解复杂的查询、同义词和上下文含义,以提供高度相关的搜索结果。

使用 Amazon Kendra 索引检索器

pip install -qU  boto3
from langchain_community.retrievers import AmazonKendraRetriever
创建新的检索器
retriever = AmazonKendraRetriever(index_id="c0806df7-e76b-4bce-9b5c-d5582f6b1a03")
现在,您可以使用 Kendra 索引中检索到的文档
retriever.invoke("what is langchain")

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.