mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
community: Additional AWS deprecations (#29447)
Added deprecation warnings for a few more classes that weremoved to `langchain-aws` package: - [SageMaker Endpoint LLM](https://python.langchain.com/api_reference/aws/retrievers/langchain_aws.retrievers.bedrock.AmazonKnowledgeBasesRetriever.html) - [Amazon Kendra retriever](https://python.langchain.com/api_reference/aws/retrievers/langchain_aws.retrievers.kendra.AmazonKendraRetriever.html) - [Amazon Bedrock Knowledge Bases retriever](https://python.langchain.com/api_reference/aws/retrievers/langchain_aws.retrievers.bedrock.AmazonKnowledgeBasesRetriever.html)
This commit is contained in:
@@ -11,6 +11,7 @@ from typing import (
|
||||
Union,
|
||||
)
|
||||
|
||||
from langchain_core._api.deprecation import deprecated
|
||||
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
||||
from langchain_core.documents import Document
|
||||
from langchain_core.retrievers import BaseRetriever
|
||||
@@ -323,6 +324,11 @@ KENDRA_CONFIDENCE_MAPPING = {
|
||||
}
|
||||
|
||||
|
||||
@deprecated(
|
||||
since="0.3.16",
|
||||
removal="1.0",
|
||||
alternative_import="langchain_aws.AmazonKendraRetriever",
|
||||
)
|
||||
class AmazonKendraRetriever(BaseRetriever):
|
||||
"""`Amazon Kendra Index` retriever.
|
||||
|
||||
|
Reference in New Issue
Block a user