The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docstrings for `embeddings` (#7973)
Leonid Ganeline24b26a922a03
diff --git a/langchain/embeddings/aleph_alpha.py b/langchain/embeddings/aleph_alpha.pyindex e5e9664ee8..f53d509a9c 100644--- a/langchain/embeddings/aleph_alpha.py+++ b/langchain/embeddings/aleph_alpha.py@@ -7,8 +7,8 @@ from langchain.utils import get_from_dict_or_envclass AlephAlphaAsymmetricSemanticEmbedding(BaseModel, Embeddings):- """- Wrapper for Aleph Alpha's Asymmetric Embeddings+ """Aleph Alpha's asymmetric semantic embedding.+AA provides you with an endpoint to embed a document and a query.The models were optimized to make the embeddings of documents andthe query for a document as similar as possible.@@ -30,7 +30,7 @@ class AlephAlphaAsymmetricSemanticEmbedding(BaseModel, Embeddings):"""client: Any #: :meta private:-+ """Aleph Alpha client."""model: Optional[str] = "luminous-base""""Model name to use."""hosting: Optional[str] = "https://api.aleph-alpha.com"diff --git a/langchain/embeddings/base.py b/langchain/embeddings/base.pyindex 6dd700c4e3..2cae8c1406 100644--- a/langchain/embeddings/base.py+++ b/langchain/embeddings/base.py@@ -1,4 +1,3 @@-"""Interface for embedding models."""from abc import ABC, abstractmethodfrom typing import List@@ -15,9 +14,9 @@ class Embeddings(ABC):"""Embed query text."""async def aembed_documents(self, texts: List[str]) -> List[List[float]]:- """Embed search docs."""+ """Asynchronous Embed search docs."""raise NotImplementedErrorasync def aembed_query(self, text: str) -> List[float]:- """Embed query text."""+ """Asynchronous Embed query text."""raise NotImplementedErrordiff --git a/langchain/embeddings/bedrock.py b/langchain/embeddings/bedrock.pyindex 35a7eab5cc..ca1fae15dd 100644--- a/langchain/embeddings/bedrock.py+++ b/langchain/embeddings/bedrock.py@@ -8,7 +8,7 @@ from langchain.embeddings.base import Embeddingsclass BedrockEmbeddings(BaseModel, Embeddings):- """Embeddings provider to invoke Bedrock embedding models.+ """Bedrock embedding models.To authenticate, the AWS client uses the following methods toautomatically load credentials:@@ -39,7 +39,7 @@ class BedrockEmbeddings(BaseModel, Embeddings):"""client: Any #: :meta private:-+ """Bedrock client."""region_name: Optional[str] = None"""The aws region e.g., `us-west-2`. Fallsback to AWS_DEFAULT_REGION env variableor region specified in ~/.aws/config in case it is not provided here.diff --git a/langchain/embeddings/clarifai.py b/langchain/embeddings/clarifai.pyindex 94bd30ef28..6d97fc075e 100644--- a/langchain/embeddings/clarifai.py+++ b/langchain/embeddings/clarifai.py@@ -1,4 +1,3 @@-"""Wrapper around Clarifai embedding models."""import loggingfrom typing import Any, Dict, List, Optional@@ -11,7 +10,7 @@ logger = logging.getLogger(__name__)class ClarifaiEmbeddings(BaseModel, Embeddings):- """Wrapper around Clarifai embedding models.+ """Clarifai embedding models.To use, you should have the ``clarifai`` python package installed, and theenvironment variable ``CLARIFAI_PAT`` set with your personal access token or pass it@@ -27,22 +26,19 @@ class ClarifaiEmbeddings(BaseModel, Embeddings):"""stub: Any #: :meta private:+ """Clarifai stub."""userDataObject: Any-+ """Clarifai user data object."""model_id: Optional[str] = None"""Model id to use."""-model_version_id: Optional[str] = None"""Model version id to use."""-app_id: Optional[str] = None"""Clarifai application id to use."""-user_id: Optional[str] = None"""Clarifai user id to use."""-pat: Optional[str] = None-+ """Clarifai personal access token to use."""api_base: str = "https://api.clarifai.com"class Config:diff --git a/langchain/embeddings/cohere.py b/langchain/embeddings/cohere.pyindex e4fe18b247..ba4b472635 100644--- a/langchain/embeddings/cohere.py+++ b/langchain/embeddings/cohere.py@@ -1,4 +1,3 @@-"""Wrapper around Cohere embedding models."""from typing import Any, Dict, List, Optionalfrom pydantic import BaseModel, Extra, root_validator@@ -8,7 +7,7 @@ from langchain.utils import get_from_dict_or_envclass CohereEmbeddings(BaseModel, Embeddings):- """Wrapper around Cohere embedding models.+ """Cohere embedding models.To use, you should have the ``cohere`` python package installed, and theenvironment variable ``COHERE_API_KEY`` set with your API key or pass it@@ -24,6 +23,7 @@ class CohereEmbeddings(BaseModel, Embeddings):"""client: Any #: :meta private:+ """Cohere client."""model: str = "embed-english-v2.0""""Model name to use."""diff --git a/langchain/embeddings/dashscope.py b/langchain/embeddings/dashscope.pyindex 1db6dd1d53..475c7a5940 100644--- a/langchain/embeddings/dashscope.py+++ b/langchain/embeddings/dashscope.py@@ -1,4 +1,3 @@-"""Wrapper around DashScope embedding models."""from __future__ import annotationsimport logging@@ -65,7 +64,7 @@ def embed_with_retry(embeddings: DashScopeEmbeddings, **kwargs: Any) -> Any:class DashScopeEmbeddings(BaseModel, Embeddings):- """Wrapper around DashScope embedding models.+ """DashScope embedding models.To use, you should have the ``dashscope`` python package installed, and theenvironment variable ``DASHSCOPE_API_KEY`` set with your API key or pass it@@ -93,10 +92,11 @@ class DashScopeEmbeddings(BaseModel, Embeddings):"""client: Any #: :meta private:+ """The DashScope client."""model: str = "text-embedding-v1"dashscope_api_key: Optional[str] = None- """Maximum number of retries to make when generating."""max_retries: int = 5+ """Maximum number of retries to make when generating."""class Config:"""Configuration for this pydantic object."""diff --git a/langchain/embeddings/deepinfra.py b/langchain/embeddings/deepinfra.pyindex 9c66dda0be..2fb15ce188 100644--- a/langchain/embeddings/deepinfra.py+++ b/langchain/embeddings/deepinfra.py@@ -10,7 +10,7 @@ DEFAULT_MODEL_ID = "sentence-transformers/clip-ViT-B-32"class DeepInfraEmbeddings(BaseModel, Embeddings):- """Wrapper around Deep Infra's embedding inference service.+ """Deep Infra's embedding inference service.To use, you should have theenvironment variable ``DEEPINFRA_API_TOKEN`` set with your API token, or passdiff --git a/langchain/embeddings/elasticsearch.py b/langchain/embeddings/elasticsearch.pyindex 7574a39b15..d7da2df07e 100644--- a/langchain/embeddings/elasticsearch.py+++ b/langchain/embeddings/elasticsearch.py@@ -12,8 +12,7 @@ from langchain.embeddings.base import Embeddingsclass ElasticsearchEmbeddings(Embeddings):- """- Wrapper around Elasticsearch embedding models.+ """Elasticsearch embedding models.This class provides an interface to generate embeddings using a model deployedin an Elasticsearch cluster. It requires an Elasticsearch connection objectdiff --git a/langchain/embeddings/embaas.py b/langchain/embeddings/embaas.pyindex e0a42e46d5..945861dc83 100644--- a/langchain/embeddings/embaas.py+++ b/langchain/embeddings/embaas.py@@ -1,4 +1,3 @@-"""Wrapper around embaas embeddings API."""from typing import Any, Dict, List, Mapping, Optionalimport requests@@ -22,7 +21,7 @@ class EmbaasEmbeddingsPayload(TypedDict):class EmbaasEmbeddings(BaseModel, Embeddings):- """Wrapper around embaas's embedding service.+ """Embaas's embedding service.To use, you should have theenvironment variable ``EMBAAS_API_KEY`` set with your API key, or passdiff --git a/langchain/embeddings/fake.py b/langchain/embeddings/fake.pyindex 9328f927e2..65bf7cfa21 100644--- a/langchain/embeddings/fake.py+++ b/langchain/embeddings/fake.py@@ -7,7 +7,10 @@ from langchain.embeddings.base import Embeddingsclass FakeEmbeddings(Embeddings, BaseModel):+ """Fake embedding model."""+size: int+ """The size of the embedding vector."""def _get_embedding(self) -> List[float]:return list(np.random.normal(size=self.size))diff --git a/langchain/embeddings/google_palm.py b/langchain/embeddings/google_palm.pyindex 2818ec1309..8633ce7a94 100644--- a/langchain/embeddings/google_palm.py+++ b/langchain/embeddings/google_palm.py@@ -1,4 +1,3 @@-"""Wrapper around Google's PaLM Embeddings APIs."""from __future__ import annotationsimport logging@@ -55,6 +54,8 @@ def embed_with_retry(class GooglePalmEmbeddings(BaseModel, Embeddings):+ """Google's PaLM Embeddings APIs."""+client: Anygoogle_api_key: Optional[str]model_name: str = "models/embedding-gecko-001"diff --git a/langchain/embeddings/gpt4all.py b/langchain/embeddings/gpt4all.pyindex bf145316b1..0f109b8453 100644--- a/langchain/embeddings/gpt4all.py+++ b/langchain/embeddings/gpt4all.py@@ -1,4 +1,3 @@-"""Wrapper around GPT4All embedding models."""from typing import Any, Dict, Listfrom pydantic import BaseModel, root_validator@@ -7,7 +6,7 @@ from langchain.embeddings.base import Embeddingsclass GPT4AllEmbeddings(BaseModel, Embeddings):- """Wrapper around GPT4All embedding models.+ """GPT4All embedding models.To use, you should have the gpt4all python package installed@@ -30,7 +29,7 @@ class GPT4AllEmbeddings(BaseModel, Embeddings):values["client"] = Embed4All()except ImportError:- raise ModuleNotFoundError(+ raise ImportError("Could not import gpt4all library. ""Please install the gpt4all library to ""use this embedding model: pip install gpt4all"diff --git a/langchain/embeddings/huggingface.py b/langchain/embeddings/huggingface.pyindex 4420484feb..3531c5537f 100644--- a/langchain/embeddings/huggingface.py+++ b/langchain/embeddings/huggingface.py@@ -1,4 +1,3 @@-"""Wrapper around HuggingFace embedding models."""from typing import Any, Dict, List, Optionalfrom pydantic import BaseModel, Extra, Field@@ -14,7 +13,7 @@ DEFAULT_QUERY_INSTRUCTION = (class HuggingFaceEmbeddings(BaseModel, Embeddings):- """Wrapper around sentence_transformers embedding models.+ """HuggingFace sentence_transformers embedding models.To use, you should have the ``sentence_transformers`` python package installed.diff --git a/langchain/embeddings/huggingface_hub.py b/langchain/embeddings/huggingface_hub.pyindex 6273ac2605..0ca9985a15 100644--- a/langchain/embeddings/huggingface_hub.py+++ b/langchain/embeddings/huggingface_hub.py@@ -1,4 +1,3 @@-"""Wrapper around HuggingFace Hub embedding models."""from typing import Any, Dict, List, Optionalfrom pydantic import BaseModel, Extra, root_validator@@ -11,7 +10,7 @@ VALID_TASKS = ("feature-extraction",)class HuggingFaceHubEmbeddings(BaseModel, Embeddings):- """Wrapper around HuggingFaceHub embedding models.+ """HuggingFaceHub embedding models.To use, you should have the ``huggingface_hub`` python package installed, and theenvironment variable ``HUGGINGFACEHUB_API_TOKEN`` set with your API token, or pass@@ -71,7 +70,7 @@ class HuggingFaceHubEmbeddings(BaseModel, Embeddings):)values["client"] = clientexcept ImportError:- raise ValueError(+ raise ImportError("Could not import huggingface_hub python package. ""Please install it with `pip install huggingface_hub`.")diff --git a/langchain/embeddings/jina.py b/langchain/embeddings/jina.pyindex d980ee3a8c..1931a9c4ee 100644--- a/langchain/embeddings/jina.py+++ b/langchain/embeddings/jina.py@@ -1,5 +1,3 @@-"""Wrapper around Jina embedding models."""-import osfrom typing import Any, Dict, List, Optional@@ -11,6 +9,8 @@ from langchain.utils import get_from_dict_or_envclass JinaEmbeddings(BaseModel, Embeddings):+ """Jina embedding models."""+client: Any #: :meta private:model_name: str = "ViT-B-32::openai"diff --git a/langchain/embeddings/llamacpp.py b/langchain/embeddings/llamacpp.pyindex 0c11731e98..5c31d53bf3 100644--- a/langchain/embeddings/llamacpp.py+++ b/langchain/embeddings/llamacpp.py@@ -1,4 +1,3 @@-"""Wrapper around llama.cpp embedding models."""from typing import Any, Dict, List, Optionalfrom pydantic import BaseModel, Extra, Field, root_validator@@ -7,7 +6,7 @@ from langchain.embeddings.base import Embeddingsclass LlamaCppEmbeddings(BaseModel, Embeddings):- """Wrapper around llama.cpp embedding models.+ """llama.cpp embedding models.To use, you should have the llama-cpp-python library installed, and provide thepath to the Llama model as a named parameter to the constructor.diff --git a/langchain/embeddings/minimax.py b/langchain/embeddings/minimax.pyindex c33ca0f292..3ac9a7ef43 100644--- a/langchain/embeddings/minimax.py+++ b/langchain/embeddings/minimax.py@@ -1,4 +1,3 @@-"""Wrapper around MiniMax APIs."""from __future__ import annotationsimport logging@@ -47,7 +46,7 @@ def embed_with_retry(embeddings: MiniMaxEmbeddings, *args: Any, **kwargs: Any) -class MiniMaxEmbeddings(BaseModel, Embeddings):- """Wrapper around MiniMax's embedding inference service.+ """MiniMax's embedding service.To use, you should have the environment variable ``MINIMAX_GROUP_ID`` and``MINIMAX_API_KEY`` set with your API token, or pass it as a named parameter todiff --git a/langchain/embeddings/mlflow_gateway.py b/langchain/embeddings/mlflow_gateway.pyindex e3a647f5ba..349e848092 100644--- a/langchain/embeddings/mlflow_gateway.py+++ b/langchain/embeddings/mlflow_gateway.py@@ -13,8 +13,12 @@ def _chunk(texts: List[str], size: int) -> Iterator[List[str]]:class MlflowAIGatewayEmbeddings(Embeddings, BaseModel):+ """MLflow AI Gateway Embeddings APIs."""+route: str+ """The route to use for the MLflow AI Gateway API."""gateway_uri: Optional[str] = None+ """The URI for the MLflow AI Gateway API."""def __init__(self, **kwargs: Any):try:diff --git a/langchain/embeddings/modelscope_hub.py b/langchain/embeddings/modelscope_hub.pyindex 23c0bfc0bb..6b6ebab424 100644--- a/langchain/embeddings/modelscope_hub.py+++ b/langchain/embeddings/modelscope_hub.py@@ -1,4 +1,3 @@-"""Wrapper around ModelScopeHub embedding models."""from typing import Any, Listfrom pydantic import BaseModel, Extra@@ -7,7 +6,7 @@ from langchain.embeddings.base import Embeddingsclass ModelScopeEmbeddings(BaseModel, Embeddings):- """Wrapper around modelscope_hub embedding models.+ """ModelScopeHub embedding models.To use, you should have the ``modelscope`` python package installed.diff --git a/langchain/embeddings/mosaicml.py b/langchain/embeddings/mosaicml.pyindex e8e0de8475..d2e448da7c 100644--- a/langchain/embeddings/mosaicml.py+++ b/langchain/embeddings/mosaicml.py@@ -1,4 +1,3 @@-"""Wrapper around MosaicML APIs."""from typing import Any, Dict, List, Mapping, Optional, Tupleimport requests@@ -9,7 +8,7 @@ from langchain.utils import get_from_dict_or_envclass MosaicMLInstructorEmbeddings(BaseModel, Embeddings):- """Wrapper around MosaicML's embedding inference service.+ """MosaicML embedding service.To use, you should have theenvironment variable ``MOSAICML_API_TOKEN`` set with your API token, or passdiff --git a/langchain/embeddings/nlpcloud.py b/langchain/embeddings/nlpcloud.pyindex 204f22bade..2e80d8d232 100644--- a/langchain/embeddings/nlpcloud.py+++ b/langchain/embeddings/nlpcloud.py@@ -1,4 +1,3 @@-"""Wrapper around NLP Cloud embedding models."""from typing import Any, Dict, Listfrom pydantic import BaseModel, root_validator@@ -8,7 +7,7 @@ from langchain.utils import get_from_dict_or_envclass NLPCloudEmbeddings(BaseModel, Embeddings):- """Wrapper around NLP Cloud embedding models.+ """NLP Cloud embedding models.To use, you should have the nlpcloud python package installeddiff --git a/langchain/embeddings/octoai_embeddings.py b/langchain/embeddings/octoai_embeddings.pyindex 552c3c75f5..4a9d0a5120 100644--- a/langchain/embeddings/octoai_embeddings.py+++ b/langchain/embeddings/octoai_embeddings.py@@ -1,5 +1,3 @@-"""Module providing a wrapper around OctoAI Compute Service embedding models."""-from typing import Any, Dict, List, Mapping, Optionalfrom pydantic import BaseModel, Extra, Field, root_validator@@ -12,7 +10,7 @@ DEFAULT_QUERY_INSTRUCTION = "Represent the question for retrieving similar documclass OctoAIEmbeddings(BaseModel, Embeddings):- """Wrapper around OctoAI Compute Service embedding models.+ """OctoAI Compute Service embedding models.The environment variable ``OCTOAI_API_TOKEN`` should be setwith your API token, or it can be passeddiff --git a/langchain/embeddings/openai.py b/langchain/embeddings/openai.pyindex e9b3f7f640..2234975f0a 100644--- a/langchain/embeddings/openai.py+++ b/langchain/embeddings/openai.py@@ -1,4 +1,3 @@-"""Wrapper around OpenAI embedding models."""from __future__ import annotationsimport logging@@ -120,7 +119,7 @@ async def async_embed_with_retry(embeddings: OpenAIEmbeddings, **kwargs: Any) ->class OpenAIEmbeddings(BaseModel, Embeddings):- """Wrapper around OpenAI embedding models.+ """OpenAI embedding models.To use, you should have the ``openai`` python package installed, and theenvironment variable ``OPENAI_API_KEY`` set with your API key or pass it@@ -171,6 +170,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):# to support explicit proxy for OpenAIopenai_proxy: Optional[str] = Noneembedding_ctx_length: int = 8191+ """The maximum number of tokens to embed at once."""openai_api_key: Optional[str] = Noneopenai_organization: Optional[str] = Noneallowed_special: Union[Literal["all"], Set[str]] = set()diff --git a/langchain/embeddings/sagemaker_endpoint.py b/langchain/embeddings/sagemaker_endpoint.pyindex 25ba961df5..d0fd864a6b 100644--- a/langchain/embeddings/sagemaker_endpoint.py+++ b/langchain/embeddings/sagemaker_endpoint.py@@ -1,4 +1,3 @@-"""Wrapper around Sagemaker InvokeEndpoint API."""from typing import Any, Dict, List, Optionalfrom pydantic import BaseModel, Extra, root_validator@@ -12,7 +11,7 @@ class EmbeddingsContentHandler(ContentHandlerBase[List[str], List[List[float]]])class SagemakerEndpointEmbeddings(BaseModel, Embeddings):- """Wrapper around custom Sagemaker Inference Endpoints.+ """Custom Sagemaker Inference Endpoints.To use, you must supply the endpoint name from your deployedSagemaker model & the region where it is deployed.@@ -133,7 +132,7 @@ class SagemakerEndpointEmbeddings(BaseModel, Embeddings):) from eexcept ImportError:- raise ValueError(+ raise ImportError("Could not import boto3 python package. ""Please install it with `pip install boto3`.")diff --git a/langchain/embeddings/self_hosted.py b/langchain/embeddings/self_hosted.pyindex c010d5d500..3ef3136692 100644--- a/langchain/embeddings/self_hosted.py+++ b/langchain/embeddings/self_hosted.py@@ -1,4 +1,3 @@-"""Running custom embedding models on self-hosted remote hardware."""from typing import Any, Callable, Listfrom pydantic import Extra@@ -17,7 +16,7 @@ def _embed_documents(pipeline: Any, *args: Any, **kwargs: Any) -> List[List[floaclass SelfHostedEmbeddings(SelfHostedPipeline, Embeddings):- """Runs custom embedding models on self-hosted remote hardware.+ """Custom embedding models on self-hosted remote hardware.Supported hardware includes auto-launched instances on AWS, GCP, Azure,and Lambda, as well as servers specifieddiff --git a/langchain/embeddings/self_hosted_hugging_face.py b/langchain/embeddings/self_hosted_hugging_face.pyindex 346f079167..e12263d67f 100644--- a/langchain/embeddings/self_hosted_hugging_face.py+++ b/langchain/embeddings/self_hosted_hugging_face.py@@ -1,4 +1,3 @@-"""Wrapper around HuggingFace embedding models for self-hosted remote hardware."""import importlibimport loggingfrom typing import Any, Callable, List, Optional@@ -58,7 +57,7 @@ def load_embedding_model(model_id: str, instruct: bool = False, device: int = 0)class SelfHostedHuggingFaceEmbeddings(SelfHostedEmbeddings):- """Runs sentence_transformers embedding models on self-hosted remote hardware.+ """HuggingFace embedding models on self-hosted remote hardware.Supported hardware includes auto-launched instances on AWS, GCP, Azure,and Lambda, as well as servers specified@@ -101,7 +100,7 @@ class SelfHostedHuggingFaceEmbeddings(SelfHostedEmbeddings):class SelfHostedHuggingFaceInstructEmbeddings(SelfHostedHuggingFaceEmbeddings):- """Runs InstructorEmbedding embedding models on self-hosted remote hardware.+ """HuggingFace InstructEmbedding models on self-hosted remote hardware.Supported hardware includes auto-launched instances on AWS, GCP, Azure,and Lambda, as well as servers specifieddiff --git a/langchain/embeddings/sentence_transformer.py b/langchain/embeddings/sentence_transformer.pyindex 0a69f2c2e5..ae3b7caaa3 100644--- a/langchain/embeddings/sentence_transformer.py+++ b/langchain/embeddings/sentence_transformer.py@@ -1,4 +1,4 @@-"""Wrapper around sentence transformer embedding models."""+"""HuggingFace sentence_transformer embedding models."""from langchain.embeddings.huggingface import HuggingFaceEmbeddingsSentenceTransformerEmbeddings = HuggingFaceEmbeddingsdiff --git a/langchain/embeddings/spacy_embeddings.py b/langchain/embeddings/spacy_embeddings.pyindex 66f4baa2f6..ded1fbbd8a 100644--- a/langchain/embeddings/spacy_embeddings.py+++ b/langchain/embeddings/spacy_embeddings.py@@ -7,8 +7,8 @@ from langchain.embeddings.base import Embeddingsclass SpacyEmbeddings(BaseModel, Embeddings):- """- SpacyEmbeddings is a class for generating embeddings using the Spacy library.+ """Embeddings by SpaCy models.+It only supports the 'en_core_web_sm' model.Attributes:diff --git a/langchain/embeddings/tensorflow_hub.py b/langchain/embeddings/tensorflow_hub.pyindex 1e699ecbd3..514c7e1c1f 100644--- a/langchain/embeddings/tensorflow_hub.py+++ b/langchain/embeddings/tensorflow_hub.py@@ -1,4 +1,3 @@-"""Wrapper around TensorflowHub embedding models."""from typing import Any, Listfrom pydantic import BaseModel, Extra@@ -9,7 +8,7 @@ DEFAULT_MODEL_URL = "https://tfhub.dev/google/universal-sentence-encoder-multiliclass TensorflowHubEmbeddings(BaseModel, Embeddings):- """Wrapper around tensorflow_hub embedding models.+ """TensorflowHub embedding models.To use, you should have the ``tensorflow_text`` python package installed.diff --git a/langchain/embeddings/vertexai.py b/langchain/embeddings/vertexai.pyindex 6ff2a95f79..6ea6d02303 100644--- a/langchain/embeddings/vertexai.py+++ b/langchain/embeddings/vertexai.py@@ -1,4 +1,3 @@-"""Wrapper around Google VertexAI embedding models."""from typing import Dict, Listfrom pydantic import root_validator@@ -9,6 +8,8 @@ from langchain.utilities.vertexai import raise_vertex_import_errorclass VertexAIEmbeddings(_VertexAICommon, Embeddings):+ """Google Cloud VertexAI embedding models."""+model_name: str = "textembedding-gecko"@root_validator()