passdrill
AI & LLM Engineering · RAG & Embeddings · Card 006/012 easy

A support-ticket search system built purely on dense embedding similarity performs poorly when a user searches for an exact error code like 'ERR-4471', because the embedding model treats the code as similar to other short alphanumeric strings rather than as a specific identifier that must match exactly. Which change would most directly address this particular weakness?

  1. Retrain the embedding model on a larger general-purpose text corpus so that it becomes more accurate at every kind of query
  2. Add a sparse, keyword-based retrieval method such as BM25 alongside the dense embedding search, and combine both rankings into a single hybrid result set, since exact-term matching methods are specifically strong at the rare-token, exact-identifier queries where dense embeddings tend to struggle
  3. Increase the number of dimensions in the embedding vectors so the model can represent more information about each ticket
  4. Reduce the size of the text chunks so that each error code ends up stored as its own, isolated chunk
Next card → Shuffle