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

Vertex Search app: Console vs. Production inconsistency

Background: Currently I have a search app, the datasource is coming from a website datastore.  

Issue: I have used the search widget app to incorporate the search app on our help website.  However, the results I get in the console are not the same as in Production. 

For example, in the console if I ask: download 'productA' it provides a response. But if I ask download 'productA' in Production on the website I get: 'The response is blocked because a potential policy violation was detected. Try rephrasing the query.'

Why is this and how can I prevent this?

2 REPLIES 2

Hi @Ian_Stack,

Welcome to Google Cloud Community!

Google skips the answer if there is a potential policy violation detected. This includes content that may be violent or toxic. With this, you may check the response details of the finishReason to know more details for this behavior. In addition, you may also check the safety filters and responsible AI information which you can configure that may help your case.

For a deeper investigation you can reach out to the Google Cloud support.

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.

Hello there, 

Thank you for getting back to me.  Follow up, I can look into the logs to see why content was not provided, however it assumed that console would bypass all 'harmful content?'  Is that why responses are provided in the console but not in PRODUCTION?