Open yamazakikakuyo opened 1 month ago
I'm having the same issue. I can confirm that this happens when Chunking mode
is enabled
, regardless of the type of parsing.
Same issue for me
same issue for me
I encountered the same issue. The only document I found about the extractive_content_spec parameter is this: Get snippets and extracted content
I believe that grounding isn't currently supported for Vertex AI Search data stores that use Chunking Modes
File Name
gemini/grounding/intro-grounding-gemini.ipynb
What happened?
Hi, I have an issue when using more than Grounding Tool class in GenerativeModel class. I have read the documentation regarding parse and chunking in Datastore in Vertex AI Agent Builder this link. I interested in capability of Layout Parser that could understand table in PDF file format and I create a Datastore and Search type App in Agent Builder with that parse mode.
I noticed that when choose Layout Parser, the chunking mode become mandatory and I don't really mind about this. However, when I use the Datastore ID in Gemini's grounding Tools. There's error occured and it is said as the relevant log output part. I have also tried a several others parse mode and it comes with the same error in every parse mode in Datastore that enabled chunking mode.
Here's the detail of code that I used and also the Datastore and Search type App configuration.
vertex_search_tool = Tool.from_retrieval( retrieval=preview_generative_models.grounding.Retrieval( source=preview_generative_models.grounding.VertexAISearch( datastore=f"projects/{PROJECT_ID}/locations/global/collections/default_collection/dataStores/{DATASTORE_ID}" ), ) )
model = GenerativeModel( "gemini-1.0-pro", generation_config={"temperature": 0} ) chat = model.start_chat() response = chat.send_message(PROMPT, tools=[vertex_search_tool])
Code of Conduct