-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7aa70a
commit bc54da4
Showing
2 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _gemini: | ||
|
||
Gemini Models | ||
===================== | ||
|
||
This section provides an overview of how you can use Gemini models in EvaDB. | ||
|
||
|
||
Chat Completion Functions | ||
------------------------- | ||
|
||
To create a chat completion function in EvaDB, use the following SQL command: | ||
|
||
.. code-block:: sql | ||
CREATE FUNCTION IF NOT EXISTS GeminiChatCompletion | ||
IMPL 'evadb/functions/gemini.py' | ||
MODEL 'gemini-pro' | ||
EvaDB supports the following models for chat completion task: | ||
|
||
- "gemini-pro" | ||
|
||
The chat completion function can be composed in interesting ways with other functions. Gemini can be used similar to the `ChatGPT` function as shown in `Google Colab <https://colab.research.google.com/github/georgia-tech-db/evadb/blob/master/tutorials/08-chatgpt.ipynb>`_. as 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. |