amazon / Titan-text-embeddings-v2

huggingface.co
Total runs: 529
24-hour runs: -9
7-day runs: -30
30-day runs: 113
Model's Last Updated: May 01 2024
feature-extraction

Introduction of Titan-text-embeddings-v2

Model Details of Titan-text-embeddings-v2

Bedrock Titan Text Embeddings v2

This repository contains the MTEB scores and usage examples of Bedrock Titan Text Embeddings v2. You can use the embedding model either via the Bedrock InvokeModel API or via Bedrock's batch jobs. For RAG use cases we recommend the former to embed queries during search (latency optimized) and the latter to index corpus (throughput optimized).

Using Bedrock's InvokeModel API
import json
import boto3
class TitanEmbeddings(object):
    accept = "application/json"
    content_type = "application/json"
    
    def __init__(self, model_id="amazon.titan-embed-text-v2:0"):
        self.bedrock = boto3.client(service_name='bedrock-runtime')
        self.model_id = model_id
    def __call__(self, text, dimensions, normalize=True):
        """
        Returns Titan Embeddings
        Args:
            text (str): text to embed
            dimensions (int): Number of output dimensions.
            normalize (bool): Whether to return the normalized embedding or not.
        Return:
            List[float]: Embedding
            
        """
        body = json.dumps({
            "inputText": text,
            "dimensions": dimensions,
            "normalize": normalize
        })
        response = self.bedrock.invoke_model(
            body=body, modelId=self.model_id, accept=self.accept, contentType=self.content_type
        )
        response_body = json.loads(response.get('body').read())
        return response_body['embedding']

if __name__ == '__main__':
    """
    Entrypoint for Amazon Titan Embeddings V2 - Text example.
    """
    dimensions = 1024
    normalize = True
    
    titan_embeddings_v2 = TitanEmbeddings(model_id="amazon.titan-embed-text-v2:0")

    input_text = "What are the different services that you offer?"
    embedding = titan_embeddings_v2(input_text, dimensions, normalize)
    
    print(f"{input_text=}")
    print(f"{embedding[:10]=}")
Using Bedrock's batch jobs
import requests
from aws_requests_auth.boto_utils import BotoAWSRequestsAuth

region = "us-east-1"
base_uri = f"bedrock.{region}.amazonaws.com"
batch_job_uri = f"https://{base_uri}/model-invocation-job/"

# For details on how to set up an IAM role for batch inference, see
# https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-permissions.html
role_arn = "arn:aws:iam::111122223333:role/my-batch-inference-role"

payload = {
   "inputDataConfig": { 
        "s3InputDataConfig": { 
            "s3Uri": "s3://my-input-bucket/batch-input/",
            "s3InputFormat": "JSONL"
        }
   },
   "jobName": "embeddings-v2-batch-job",
   "modelId": "amazon.titan-embed-text-v2:0",
   "outputDataConfig": {
        "s3OutputDataConfig": {
            "s3Uri": "s3://my-output-bucket/batch-output/"
        }
   },
   "roleArn": role_arn
}

request_auth = BotoAWSRequestsAuth(
    aws_host=base_uri,
    aws_region=region,
    aws_service="bedrock"
)


response= requests.request("POST", batch_job_uri, json=payload, auth=request_auth)
print(response.json())

Runs of amazon Titan-text-embeddings-v2 on huggingface.co

529
Total runs
-9
24-hour runs
-13
3-day runs
-30
7-day runs
113
30-day runs

More Information About Titan-text-embeddings-v2 huggingface.co Model

More Titan-text-embeddings-v2 license Visit here:

https://choosealicense.com/licenses/amazon-service-terms

Titan-text-embeddings-v2 huggingface.co

Titan-text-embeddings-v2 huggingface.co is an AI model on huggingface.co that provides Titan-text-embeddings-v2's model effect (), which can be used instantly with this amazon Titan-text-embeddings-v2 model. huggingface.co supports a free trial of the Titan-text-embeddings-v2 model, and also provides paid use of the Titan-text-embeddings-v2. Support call Titan-text-embeddings-v2 model through api, including Node.js, Python, http.

Titan-text-embeddings-v2 huggingface.co Url

https://huggingface.co/amazon/Titan-text-embeddings-v2

amazon Titan-text-embeddings-v2 online free

Titan-text-embeddings-v2 huggingface.co is an online trial and call api platform, which integrates Titan-text-embeddings-v2's modeling effects, including api services, and provides a free online trial of Titan-text-embeddings-v2, you can try Titan-text-embeddings-v2 online for free by clicking the link below.

amazon Titan-text-embeddings-v2 online free url in huggingface.co:

https://huggingface.co/amazon/Titan-text-embeddings-v2

Titan-text-embeddings-v2 install

Titan-text-embeddings-v2 is an open source model from GitHub that offers a free installation service, and any user can find Titan-text-embeddings-v2 on GitHub to install. At the same time, huggingface.co provides the effect of Titan-text-embeddings-v2 install, users can directly use Titan-text-embeddings-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Titan-text-embeddings-v2 install url in huggingface.co:

https://huggingface.co/amazon/Titan-text-embeddings-v2

Url of Titan-text-embeddings-v2

Titan-text-embeddings-v2 huggingface.co Url

Provider of Titan-text-embeddings-v2 huggingface.co

amazon
ORGANIZATIONS

Other API from amazon

huggingface.co

Total runs: 22.6M
Run Growth: -6.0M
Growth Rate: -26.65%
Updated:June 05 2026
huggingface.co

Total runs: 716.4K
Run Growth: 120.1K
Growth Rate: 16.76%
Updated:November 21 2025
huggingface.co

Total runs: 422.6K
Run Growth: -377.9K
Growth Rate: -89.44%
Updated:November 21 2025
huggingface.co

Total runs: 70.1K
Run Growth: 18.5K
Growth Rate: 26.37%
Updated:November 21 2025
huggingface.co

Total runs: 4.3K
Run Growth: -79.4K
Growth Rate: -1859.15%
Updated:May 16 2024
huggingface.co

Total runs: 926
Run Growth: 846
Growth Rate: 91.36%
Updated:May 30 2025
huggingface.co

Total runs: 155
Run Growth: 79
Growth Rate: 52.67%
Updated:November 17 2023
huggingface.co

Total runs: 90
Run Growth: 37
Growth Rate: 45.12%
Updated:March 01 2024