🔎Embeddings
Embeddings Operations Overview:
Sample Code for Embeddings Requests:
Semantic Analysis Request:
var request = new EmbeddingRequest.Builder()
.SetModel(EmbeddingModel.TextEmbeddingAda002)
.SetInput("The food was delicious and the waiter...")
.SetEncodingFormat(EncodingFormat.Float)
.Build();
var result = await request.ExecuteAsync();
float[] embeddings = result.EmbeddingVector;from openai import OpenAI
client = OpenAI()
client.embeddings.create(
model="text-embedding-ada-002",
input="The food was delicious and the waiter...",
encoding_format="float"
)Last updated