-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Grounding Gemini with Data Store. Error 400 Request contains an invalid argument. #1284
Comments
Thanks for the thorough bug report w/ logs, links, and related issues! ❤️ Sorry you are running into this. In Vertex AI Search, you now need to have a data store attached to a search app to avoid this 400 error. I added warnings / notes in the notebook, so take a look at the note near the end of the notebook where that retrieval happens, and you'll see a couple of links there on how to add a search app that's linked to your data store: Once you add and attach a search app to that data store, that should resolve the 400 error that you're running into. |
Hi @koverholt , thanks for your input. I still get this error when I try to ground Gemini in the data store. I've attached a Search app in Agent Builder to the data store and the search app is functional. I can query the data store from Workbench as well.
|
@ElliotK-IB Be sure that your location for Vertex AI Search is the location of the data store (should be one of Also be sure that your data store is in the same project as where you're calling the Gemini model (set in |
Project: us-central1 REGION (used in As I mentioned in my initial bug report, I have no problem querying Vertex AI Search without Gemini. My data store is within the same project as well. |
I got things working by creating a new datastore with virtually the same process, but would like to provide additional info if I can find the original source of the problem. Will update if I find anything that may be insightful. |
Thanks for letting us know! And we appreciate your thoroughness in checking the config settings, etc. I wonder if any data store or search app settings are different between the apps, such as "Advanced LLM features" (which is distinct from "Enterprise edition features"), or the type of data when importing (unstructured vs. JSONL vs CSV, or the chunking). I wonder if there is a combination that works when querying the data store / app directly, but doesn't work with the retrieval tool call since it might not support the same set of options (related to the data store and/or search app config) as the former approach. |
Unfortunately, I couldn't find any differences between the search apps/data stores. In the future, if more configuration details are surfaced for straightforward inspection, I believe it'd be easier to troubleshoot. Thanks for your help! @koverholt @holtskinner |
Thanks so much for your detailed debugging! And sorry we were not able to identify a clear root cause, but I am glad you were able to get it to a working state with the new app / data store! In the event you come up with a minimal reproducible code example in the future, please feel free to open a bug report on the public Vertex AI issue tracker, and we can help escalate it to the right product and engineering folks. Thanks! |
File Name
gemini/grounding/intro-grounding-gemini.ipynb
What happened?
I want to ground Gemini in a Vertex AI Data Store (not Google Search). I've seen previous issues similar to this one, but not quite the same/the solutions did not solve my problem.
What doesn't work:
What works:
I already connected the Data Store to a Search App in Agent Builder, Enterprise enabled.
I didn't request to be added to the allowlist because the form says it's for grounding in Google Search - not my use case (Data Store).
I used the following official sources for reference:
I also checked out the following issues:
Copying the code and only changing the project ID, Data Store ID, and region did not work for me.
More details
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: