Back

create-embedding (clj)

(source)

function

(create-embedding params) (create-embedding params options)
Creates an embedding vector representing the input text. Example: ``` (create-embedding {:model "text-embedding-ada-002" :input "The food was delicious and the waiter..."}) ``` For Azure OpenAI pass `{:impl :azure}` for the `options` argument Also see the [OpenAI](https://platform.openai.com/docs/api-reference/embeddings/create) / [Azure OpenAI](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#embeddings) documentation

Examples