AI Help

How do I combine keyword and semantic search for exact product codes?

Combine exact-term retrieval with semantic retrieval and evaluate how results are merged. Product codes often need literal matching.

Steps to follow

  1. Create test questions containing exact codes, partial descriptions and similar-looking identifiers.
  2. Use the retrieval system's documented hybrid or lexical options, or combine approved search results in your application.
  3. Check whether the exact intended code appears and whether related language improves recall. Tune ranking against the reviewed set.

Example in practice

Illustrative example. A query for part AB-120 should retrieve that code even when semantically similar AB-121 has a more descriptive paragraph.

Related AI help

Official guidance

OpenAI documentation