Course menuAIP-C01

Exams / AIP-C01 / Semantic, hybrid search and reranking / Question 1

AIP-C01 practice question: Semantic, hybrid search and reranking

Foundation Model Integration, Data Management, and Compliance A free question from our original AIP-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A hardware distributor runs a search box over 400,000 product records. Buyers type exact part numbers, such as XK-4471-B, and also describe what they need in plain language, such as a quiet pump for well water.

Vector-only search finds the descriptions well but often returns the wrong item for a part number, because codes carry little meaning in an embedding. Keyword-only search finds the part numbers but misses the descriptions.

The results must satisfy both query types in one search box, with the best match at the top, and the distributor wants to keep its current OpenSearch index.

Which change meets these requirements?

Choose one answer.

  1. A. Run hybrid search in the OpenSearch index, combining keyword matching on part numbers with vector similarity on descriptions, and then rerank the merged results.
  2. B. Keep vector-only search, and increase the chunk size of each product record so that the part number sits closer to the surrounding words in the embedding.
  3. C. Keep keyword-only search, and maintain a long synonym list that maps common descriptions such as quiet pump or well water to the matching part numbers.
  4. D. Fine-tune an embedding model on pairs of part numbers and descriptions so codes land near their descriptions, and keep vector-only search with it.
Show the answer and explanation

Answer: A

  • A. Right: Hybrid search finds exact codes through keywords and meaning through vectors in the same index, and a reranker orders the merged list by relevance. This keeps the current index and meets both query types. Learn more: Improve the relevance of query responses with a reranker model (opens in a new tab)
  • B. Wrong: Longer records make the embedding more diluted, and the part number still carries little meaning in a vector. This does not fix exact code matches, so the first requirement is missed.
  • C. Wrong: A synonym list has to be updated by hand for every new product and phrasing, and it can never cover the variety of plain-language descriptions. It misses the meaning requirement and adds ongoing maintenance.
  • D. Wrong: Fine-tuning needs a large set of labeled pairs and a training project, which delays the change and adds cost. Codes may still match poorly against unseen numbers, so this does not guarantee exact matches.

Explanation

Hybrid search covers exact part numbers through keywords and plain-language descriptions through vectors, within the existing OpenSearch index, and a reranker sets the final order. Longer records, synonym lists and fine-tuning each leave one query type poorly served or add ongoing effort.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Semantic, hybrid search and reranking? The 5 full-length practice sets have 5 more Semantic, hybrid search and reranking questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets