This section provides an overview of how you can use OpenAI models in EvaDB.
Chat Completion UDFs#
To create a chat completion UDF in EvaDB, use the following SQL command:
CREATE UDF IF NOT EXISTS OpenAIChatCompletion
EvaDB supports the following models for chat completion task:
The chat completion UDF can be composed in interesting ways with other UDFs. Please refer to the ChatGPT notebook for an example of combining chat completion task with caption extraction and video summarization models from Hugging Face and feeding it to chat completion to ask questions about the results.