Skip to content

Commit

Permalink
Backport PR jupyterlab#778: Add Titan embedding model v2
Browse files Browse the repository at this point in the history
  • Loading branch information
srdas authored and meeseeksmachine committed May 8, 2024
1 parent 90649f1 commit da5d2e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ class HfHubEmbeddingsProvider(BaseEmbeddingsProvider, HuggingFaceHubEmbeddings):
registry = True


# See model ID list here: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
class BedrockEmbeddingsProvider(BaseEmbeddingsProvider, BedrockEmbeddings):
id = "bedrock"
name = "Bedrock"
models = ["amazon.titan-embed-text-v1"]
models = ["amazon.titan-embed-text-v1", "amazon.titan-embed-text-v2:0"]
model_id_key = "model_id"
pypi_package_deps = ["boto3"]
auth_strategy = AwsAuthStrategy()
Expand Down

0 comments on commit da5d2e5

Please sign in to comment.