Embed text and generate completions using OpenAI models. See the API reference for all parameters.Documentation Index
Fetch the complete documentation index at: https://lancedb-bcbb4faf-docs-namespace-typescript-examples.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Set the
OPENAI_API_KEY environment variable before calling any factory function below.
The key is read at UDF creation time and serialized with the UDF — no cluster-level
env_vars configuration is needed.Embeddings
Compare models by adding multiple embedding columns at once:Generation
Generate text from OpenAI chat completion models. Supports both text and binary (image) input columns. See the API reference for all parameters. Add a summary and an image caption in one call, using different models:API Reference
- OpenAI —
openai_udf()andopenai_embedding_udf()— all parameters includingcolumn,prompt,model,mime_type,dimensions, andnormalize