Announcements
The Google Cloud Community will be in read-only from July 16 - 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.

Agent builder filtering mechanisms

 

I'm working with Vertex AI's Agent Builder to create a search engine over a product catalog for industry users, and I'm looking for advice on best practices for using filters and facets.

We're migrating from a traditional database to Agent Builder, and I'm running into an issue with filtering. Users might search using semantic queries, but sometimes they need precise filtering. The problem is that the filtering mechanism only allows `ANY()`, which requires exact matches. To achieve "contains" or "starts with" behavior, I currently filter using facets, extract the results, and then perform a second search with `ANY()`. This seems feasible but is limited by the facet filter's maximum of 300 results.

Is there a better way to implement "contains" or "starts with" filtering? How does Google recommend developers handle these scenarios when exact matches aren't sufficient, especially given the need for both semantic and precise filtering?

Any advice or insights would be much appreciated. Thanks!

 

2 2 806
2 REPLIES 2