generative-ai-python
generative-ai-python copied to clipboard
[Bug]: SQLTalk demo is using VertexAI SDK, not Gemini SDK but is branded as GeminiAI
Description of the bug:
SQLTalk, a sample Streamlit app demonstrating Vertex AI's function calling with BigQuery was recently shared by Google: Video, Tutorial, Code, Live demo.
Even though the code lives in Gemini directory (see the full path), it is actually using Vertex AI SDK, not Gemini SDK. The Github page actually says that this repo is for Vertex AI:
But, the Tutorial and Video mention Gemini AI, not Vertex AI.
In summary, A sample app, which was branded as Gemini AI in the video and docs , is actually using vertexai SDK but is present under "gemini" folder in a repo that is for VertexAI only.
Actual vs expected behavior:
Provide a version of SQLTalk app that uses Gemini SDK, not VertexAI SDK;
This is not a simple matter of renaming vertexai.generative_models
to google.generativeai
because there are subtle differences in both the SDKs.
While this line from SQLTalk app sample code works fine:
from vertexai.generative_models import FunctionDeclaration, GenerativeModel, Part, Tool
This fails:
from google.generativeai import FunctionDeclaration, GenerativeModel, Part, Tool
because the GeminiSDK does not have FunctionDeclaration
, Part
and Tool
but does have GenerativeModel
.
To someone new to GeminiAI/VertexAI, all this is highly confusing.
Any other information you'd like to share?
No response