Open sanjanalreddy opened 1 month ago
Can you provide details about the specific queries and data source you're using for grounding?
I'm using the same data source that is mentioned in the notebook that points to cloud.google.com/*
and the prompt is When should I use an object table in BigQuery? And how does it store data?
Similar experience here. The grounding_metadata
contains the retrieval_queries
property only, but nothing that looks like citations or attributions. For example, the method print_grounding_response
in the grounding example indicates that there should be attributions available, but I'm consistently not getting any.
I'm a bit perplexed in general because I can set up a prompt and grounding source in the Vertex AI UI, try it out and it works okay, then click "Get Code" and execute that code and get no results. In general, results seem to be much worse using latest SDK and Gemini models, compared to the previous way of doing it and with text-bison.
File Name
https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/grounding/intro-grounding-gemini.ipynb
What happened?
Grounding with Gemini doesn't work. Gemini model doesn't seem to be using the grounding source to answer the prompt. The same datasource with Palm however returns grounded responses and grounding metadata.
Relevant log output
No response
Code of Conduct