Embedding functions
openai_embedding
Get the text embedding vector for a given text. The api_key
and model
arguments must be constant values.
openai_embedding ( api_key constant text, model constant text, input text ) → real[]
openai_embedding('sk-proj-1234567890', 'text-embedding-3-small', 'Hello, world!') -> {0.0001, 0.0002, 0.0003, ...}
Responses are generated using AI and may contain mistakes.