跳至主要內容

Amazon Kendra

Amazon Kendra 是由 Amazon Web Services (AWS) 提供的智慧型搜尋服務。它利用先進的自然語言處理 (NLP) 和機器學習演算法,在組織內各種資料來源中實現強大的搜尋功能。 Kendra 旨在幫助使用者快速準確地找到他們需要的資訊,從而提高生產力和決策品質。

透過 Kendra,使用者可以搜尋各種內容類型,包括文件、常見問題解答、知識庫、手冊和網站。 它支援多種語言,並且可以理解複雜的查詢、同義詞和上下文含義,以提供高度相關的搜尋結果。

使用 Amazon Kendra 索引檢索器

%pip install --upgrade --quiet  boto3
from langchain_community.retrievers import AmazonKendraRetriever
API 參考文檔:AmazonKendraRetriever

建立新的檢索器 (Create New Retriever)

retriever = AmazonKendraRetriever(index_id="c0806df7-e76b-4bce-9b5c-d5582f6b1a03")

現在您可以使用從 Kendra 索引檢索的文件 (Now you can use retrieved documents from Kendra index)

retriever.invoke("what is langchain")

此頁面是否對您有所幫助? (Was this page helpful?)