Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Agent Builder - App response Errors

Hi, I am trying to get my Vertex AI Search app to answer questions via code, using the python code sample here:

https://cloud.google.com/generative-ai-app-builder/docs/samples/genappbuilder-answer-query

I use Google colab and I first authenticate with:

import sys
if "google.colab" in sys.modules:
from google.colab import auth
auth.authenticate_user()
I sign in using the same account I used to create the apps in GCP (and I can use the app perfectly from there).
In the "answer_query_sample" function I insert the project_id, the location as set when I created the app, and the engine_id as the app ID taken from the app.
The app uses blended search, and when I try to run it I get the error:
InvalidArgument: 400 Blended search support needs allowlisting. Please contact with Google support team.

 If I try another app that does not have blended search (only uses 1 datastore) I get 

InternalServerError: 500 Internal error encountered. Please try again. If the issue persists, please contact our support team.

Ideally I would like to solve the fist error but it seems first of all I have to deal with the second one . Any Ideas what the problems are?

 

Thanks

1 2 926
2 REPLIES 2

Hi @GiaZ,

Welcome to Google Cloud Community!

The error message "InvalidArgument: 400 Blended search support needs allowlisting" indicates that your app is attempting to use a feature that is not yet enabled on your project. To enable blended search functionality, your project will need to be allowlisted. 

With this, you may contact your Google account team (if you have) or Google Cloud Support to request access to this feature.

Regarding the "InternalServerError: 500 Internal error encountered" message, as noted in the documentation, these errors are typically temporary. Please try resubmitting your request, which may resolve the issue. If the problem persists, you can reach out to the support team or open a new thread on the issue tracker describing your issue.

I hope the above information is helpful.

Hi @paulynann,
The 500 Internal error encountered was due to trying to use gemini-1.5-flash-001/answer_gen/v2, while it works fine with gemini-1.5-flash-001/answer_gen/v1.

I can call an agent that doesn't have blended search and only uses one datastore. Otherwise, I still get the InvalidArgument: 400 Blended search support needs allowlisting. BUT I CAN USE IT WITHOUT PROBLEMS ON THE AGENT BUILDER PLATFORM. Why not via code? 
What does it mean to get the project "allowlisted", and how can I make it so?

Thanks