- Get an API key from the API keys and URLs page.
- Review sample implementations in the documentation.
- Generate embeddings using provided examples.
- Integrate embeddings into your application workflows.
Generating embeddings
The SambaNova Embeddings API is designed for seamless integration with existing applications and follows OpenAI’s embeddings API structure, simplifying migration and adoption. The model takes in text as input and outputs a vector of floating-point numbers, which can be used for tasks like similarity searches.Generating a single embedding
To generate an embedding for a single input text, useclient.embeddings.create()
with the model name and input string.
Example
Example response
Generating multiple embeddings
To generate embeddings for multiple inputs in a single request, pass an array of input strings to theinput
parameter.