23 Jun 2026 · 7 min læsning

Vektorsøgning: fem almindelige faldgruber

Vector search powers semantic retrieval — finding things by meaning rather than exact keywords — and it underpins most retrieval-augmented AI. It is also deceptively easy to get subtly wrong. The failures are rarely dramatic; they are quiet degradations that make the whole system feel unreliable. Here are five pitfalls that trip up most first attempts.

Why vector search feels magical then disappoints

The reason vector search trips people up is that the first prototype almost always works beautifully. You embed a few documents, run a query, and it finds relevant results by meaning rather than exact words — it feels like magic. Then the corpus grows, the queries get more varied, and the quality quietly slips. The failures below are the usual causes, and none of them shows up in a quick demo. They emerge only under the messiness of real use, which is exactly why they catch teams by surprise.

Pitfall one: bad chunking

How you split documents into pieces before embedding them determines the ceiling of everything downstream. Chunks that are too large bury the relevant sentence among irrelevant text, so retrieval returns a match that is technically related but not useful. Chunks that are too small lose the context that gave them meaning. Fixed-size splitting is convenient and usually the wrong choice. Respect the document's natural structure instead — sections, paragraphs, clauses — so each chunk is a coherent unit.

Pitfall two: ignoring the embedding model's limits

The embedding model turns text into vectors, and not all embedding models are equal for your domain. A model trained on general web text may handle legal, medical or highly technical content poorly, placing genuinely related passages far apart in vector space. Teams often accept the default embedding model without checking whether it actually captures similarity in their specific domain. It is worth testing a few on your own content before committing.

Pitfall three: relying on similarity alone

Pure semantic similarity ignores structure that the question depends on. A user asking about the current policy does not want a semantically similar passage from a version retired two years ago. Attaching metadata — dates, document types, categories — to each chunk and filtering on it alongside the vector search removes a whole class of confidently-wrong results. Similarity finds the right topic; metadata ensures the right context.

Pitfall four: no evaluation set

The single biggest difference between a reliable vector search system and a flaky one is whether it is measured. Without a fixed set of real queries and their known-relevant results, every change to chunking or embeddings is a guess. Build an evaluation set early — even fifty good query-result pairs — and use it as a regression gate. It turns tuning from opinion into measurement and catches the silent regressions where a change helps some queries and quietly breaks others.

Pitfall five: forgetting about updates

A vector index is not static. Documents change, get added, and get retired, and the index has to keep up. Teams frequently build a system against a snapshot and never plan for how it stays current, so over time the search returns stale or missing results. Deciding upfront how the index is refreshed — incrementally as documents change, or on a schedule — is part of building something that keeps working rather than degrading quietly after launch.

A working checklist

Before you trust a vector search system, check each of these: chunks respect document structure and are the right size for your content; the embedding model actually captures similarity in your domain; metadata filtering narrows results to the right context; a real evaluation set gates every change; and the index has a clear update path. None of these is exotic, and each one prevents a category of quiet failure.

Hybrid search: the pragmatic default

One technique worth reaching for when pure vector search disappoints is hybrid search — combining semantic similarity with traditional keyword matching. Vector search excels at meaning but can miss exact terms, product codes or names that keyword search handles trivially. Running both and combining their results gives you the best of each: the precision of keywords where the query is specific, and the flexibility of semantics where it is conceptual. For many real applications, hybrid search is a more reliable default than either approach alone, and it is worth trying before assuming a more exotic fix is needed.

The pattern behind the pitfalls

Notice that most of these failures are not about the vector math at all. They are about the surrounding engineering: preparation of the data, choice of model for the domain, structure alongside similarity, measurement, and maintenance. That is the recurring lesson of retrieval systems — the model is rarely the bottleneck, and the durable quality comes from treating the whole pipeline as a first-class engineering problem rather than a wrapper around a similarity search. If you internalise one thing, let it be this: build the evaluation set first. Almost every one of these pitfalls becomes visible and fixable the moment you can measure retrieval against known-good results, and almost none of them is visible without that measurement. The teams that ship reliable vector search are not the ones with the cleverest embeddings; they are the ones who made their system measurable and then improved it against the numbers.