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
- Create test questions containing exact codes, partial descriptions and similar-looking identifiers.
- Use the retrieval system's documented hybrid or lexical options, or combine approved search results in your application.
- 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
- How do I choose between file search and sending the whole PDF to an AI model?
- How do I get my RAG chatbot to explain when two sources disagree?