Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

VertexAISearchRetriever doesn't find my DataStore with 404 NotFound error

I tried to access to vertexai search app with langchain's VertexAISearchRetriever, 

but the 404 not Found error pops up with following error message.

I checked whether the app and data store exist and deployed, and user's authrization but the problem is not still solved.

Is this bug?

 

My code:

 

from langchain_google_community import VertexAISearchRetriever 
 
    retriever = VertexAISearchRetriever(
        project_id= project_id,
        location_id= location,
        data_store_id= data_store_id,
    )

 

 

Error Message:

 google.api_core.exceptions.NotFound: 404 DataStore projects/787703115620/locations/global/collections/default_collection/dataStores/{my-app-engine-id} not found.

0 1 292
1 REPLY 1

Hi @lucy_jung,

Welcome to Google Cloud Community!

The error message "404 DataStore projects/787703115620/locations/global/collections/default_collection/dataStores/{my-app-engine-id} not found" indicates that the Datastore ID you’re using could be incorrect, or the Vertex Ai Search Datastore might not be properly configured or may at the specific path.

Here are some potential ways to address your issue:

  • Review Datastore ID: Make sure the data_store_id in your code matches the ID specified in your Vertex AI Search configuration.
  • Check Permissions: Ensure that your service account has the required permissions to run the code and access the DataStore.
  • Verify Project ID and Location: Make sure your project_id and location_id are accurate and match the correct project and location in Vertex AI.
  • Datastore configuration: Make sure your DataStore is successfully set up and accessible.

If you continue to run into issues, consider reaching out to Google Cloud Support to further check underlying issues. When you contact them, be sure to provide as much detail as possible and include screenshots. This will help them understand your problem better and get it sorted out more quickly.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.