professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data engineering team is implementing a Retrieval-Augmented Generation (RAG) system on Google Cloud. They use Vertex AI text embedding models to generate high-dimensional vector embeddings of unstructured technical articles and index them using Vertex AI Vector Search with the Tree-AH algorithm.
During evaluation, the team discovers that while query response latency is extremely low, the index's Approximate Nearest Neighbor (ANN) search recall is insufficient, causing relevant context to be missed during generative AI grounding.
Which configuration change should the team make to improve search recall?
Vertex AI Vector Search utilizes the Tree-AH (Tree Asymmetric Hashing) algorithm based on Google's ScaNN library to provide high-speed, scalable Approximate Nearest Neighbor (ANN) search. The leaf_nodes_to_search_percent parameter specifies the percentage of index leaf nodes evaluated during a nearest neighbor query.
leaf_nodes_to_search_percent instructs the search engine to traverse and scan a larger proportion of candidate leaf nodes, directly expanding the candidate search pool.Adjusting leaf_nodes_to_search_percent directly targets the trade-off between recall and latency in Tree-AH indexes. It provides the necessary retrieval precision for generative AI pipelines while retaining the scalability benefits of approximate nearest neighbor indexing.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.