Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.28 KB

File metadata and controls

32 lines (23 loc) · 1.28 KB

EmbeddingsRequest

Properties

Name Type Description Notes
input EmbeddingsRequestInput
model_id str Embedding model to use [optional] [default to 'amazon.titan-embed-text-v2:0']
dimensions int Output embedding dimensions. Titan v2 supports: 256, 512, 1024, 8192 [optional] [default to 1024]
normalize bool Normalize embeddings to unit length (magnitude = 1.0) [optional] [default to True]

Example

from quantcdn.models.embeddings_request import EmbeddingsRequest

# TODO update the JSON string below
json = "{}"
# create an instance of EmbeddingsRequest from a JSON string
embeddings_request_instance = EmbeddingsRequest.from_json(json)
# print the JSON string representation of the object
print(EmbeddingsRequest.to_json())

# convert the object into a dict
embeddings_request_dict = embeddings_request_instance.to_dict()
# create an instance of EmbeddingsRequest from a dict
embeddings_request_from_dict = EmbeddingsRequest.from_dict(embeddings_request_dict)

[Back to Model list] [Back to API list] [Back to README]