mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 12:18:24 +00:00
community: deprecate BedrockEmbeddings in favor of langchain-aws (#24846)
This commit is contained in:
parent
21eb4c9e5d
commit
1f5444817a
@ -4,11 +4,17 @@ import os
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
import numpy as np
|
||||
from langchain_core._api.deprecation import deprecated
|
||||
from langchain_core.embeddings import Embeddings
|
||||
from langchain_core.pydantic_v1 import BaseModel, Extra, root_validator
|
||||
from langchain_core.runnables.config import run_in_executor
|
||||
|
||||
|
||||
@deprecated(
|
||||
since="0.2.11",
|
||||
removal="0.4.0",
|
||||
alternative_import="langchain_aws.BedrockEmbeddings",
|
||||
)
|
||||
class BedrockEmbeddings(BaseModel, Embeddings):
|
||||
"""Bedrock embedding models.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user