Policy-code search fails despite good semantic search. What do you do?
Practice this question- I add exact identifier fields and lexical/hybrid retrieval.
- Embeddings may not preserve rare codes or precise numbers well.
- I test actual identifiers and keep them intact during query rewriting and text preprocessing.
Adapted from 13_AI.MD · “29.4 Embeddings”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.