Vertex AI - Grounding with Vertex AI Search Data Store does not work

I tried to set up a data store with Vertex AI Search, but I always get an error message saying that the data store cannot be found.

The data store path is something like this:
projects/my-project-id-7352370225/locations/global/collections/default_collection/dataStores/my-data-store-collection_1647682765492

And the error I get:
DataStore projects/16242631679/locations/global/collections/default_collection/dataStores/my-data-store-collection_1647682765492 not found.

In the error message it somehow replaces the project-id with the project number. I have no clue why :face_with_spiral_eyes:

I used the Vertex AI Studio and the Nodejs package (“@google/genai”: “^1.19.0”) → same error
Models tested: 2.5-pro and 2.5-flash

Hello,

Could you please check if your resource path, project, and location are correct? If everything looks fine, could you share the relevant part of your code so that we can try to reproduce the issue?

I played around with it and after some combinations it worked.

It would be helpful to have a datastore selection dialog to get the correct path directly :slight_smile:

can i know the pattern which worked for you

I switched to manual retrieval using the discovery engine API

Hello Lalit

I have tried above with exact creditionals.you can show me the pattern which worked for you