This section provides an overview of how you can use OpenAI models in EvaDB.
Chat Completion Functions#
To create a chat completion function in EvaDB, use the following SQL command:
CREATE FUNCTION IF NOT EXISTS OpenAIChatCompletion
EvaDB supports the following models for chat completion task:
The chat completion function can be composed in interesting ways with other functions. Please check the Google Colab 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.