Mistral | Embeddings

Get a vector representation of a given input that can be used for semantic search, clustering, and other machine learning tasks.

Embeddings Example

Create an embedding vector for a text input.


Mistral := TsgcHTTP_API_Mistral.Create(nil);
Mistral.MistralOptions.ApiKey := 'API_KEY';
WriteLn(Mistral._CreateEmbeddings('mistral-embed', 'Hello world'));