Amazon Kendra
Amazon Kendra is an intelligent search service provided by
Amazon Web Services(AWS). It utilizes advanced natural language processing (NLP) and machine learning algorithms to enable powerful search capabilities across various data sources within an organization.Kendrais designed to help users find the information they need quickly and accurately, improving productivity and decision-making.
With
Kendra, users can search across a wide range of content types, including documents, FAQs, knowledge bases, manuals, and websites. It supports multiple languages and can understand complex queries, synonyms, and contextual meanings to provide highly relevant search results.
使用Amazon Kendra索引检索器
%pip install --upgrade --quiet boto3
from langchain_community.retrievers import AmazonKendraRetriever
API 参考:AmazonKendraRetriever
创建新的检索器
retriever = AmazonKendraRetriever(index_id="c0806df7-e76b-4bce-9b5c-d5582f6b1a03")
现在您可以使用从Kendra索引中检索到的文档
retriever.invoke("what is langchain")