Use this file to discover all available pages before exploring further.
Bedrock supports embedding text and images through Amazon Titan and Cohere models.
Portkey provides a standardized interface for embedding multiple modalities.
from portkey_ai import Portkeyclient = Portkey( api_key="YOUR_PORTKEY_API_KEY", # defaults to os.environ.get("PORTKEY_API_KEY") provider="@PROVIDER",)embeddings = client.embeddings.create( model="amazon.titan-embed-text-v2:0", input="Hello this is a test", # normalize=False # if you would like to disable normalization # dimensions=1024, # embedding dimensions # encoding_format="float", # embedding format)
from portkey_ai import Portkeyclient = Portkey( api_key="YOUR_PORTKEY_API_KEY", # defaults to os.environ.get("PORTKEY_API_KEY") provider="@PROVIDER",)embeddings = client.embeddings.create( model="cohere.embed-english-v3", input=["Hello this is a test", "skibidi"], input_type="classification")