Classic search finds keywords; semantic search finds meaning. Someone searching for “affordable accommodation” also wants results about “budget hotel”, even though not a single word matches. The technique that makes this possible is embeddings: translating text into vectors that locate its meaning in a mathematical space. Embeddings are the foundation of semantic search and a key building block of many AI applications, from knowledge search to retrieval-augmented generation.
What an embedding is
An embedding is a list of numbers, a vector, that places a text in a high-dimensional space. Texts with similar meaning receive similar vectors and therefore lie close together, regardless of the specific words. “Dog” and “puppy” are close; “dog” and “tax return” are far apart. An embedding model has learned these relationships from large amounts of text. Semantic similarity between two texts becomes geometric proximity of their vectors, and proximity can be computed efficiently.
How semantic search works
Split your knowledge base into meaningful chunks, create an embedding for each and store the vectors in a vector database. For a query, create an embedding of the query and find the nearest vectors, the texts with the greatest similarity in meaning. The result is the most relevant chunks, even if they contain no word of the query. This nearest-neighbour search is the core of every semantic search and every retrieval step in RAG systems.
Chunking: the underestimated craft
How you split the knowledge base largely decides quality. Chunks that are too large dilute meaning, because a long section mixes too many topics and its embedding becomes blurred. Chunks that are too small lose context, so a single sentence is no longer understandable in isolation. The right size depends on the content; sections that cover one complete thought, with some overlap between neighbouring chunks, often work well. Chunking is rarely the first lever people think of, but often the most effective.
Choosing the embedding model
Embedding models differ in quality, dimensionality, language support and cost. For the German-speaking region multilingualism is decisive: a model that understands German well and ideally works across languages is a precondition for usable results. Higher dimensionality can capture more nuance but costs more storage and compute. Consistency matters: queries and stored content must be embedded with the same model, otherwise the vectors are not comparable. Changing the model means re-embedding the entire knowledge base.
Hybrid search
Semantic search is not superior to keyword search but complementary. Keyword search excels at exact terms, proper names, product numbers or codes, exactly where semantic similarity can mislead. Semantic search excels at paraphrased, vague or synonymous queries. Best practice is therefore often hybrid search, combining both and merging their results, which in practice almost always outperforms either alone.
Cost and freshness
Creating embeddings costs compute per text, which adds up for large, changing knowledge bases. When a document changes, its embedding must be recomputed for search to stay current. An update process that re-embeds only changed chunks keeps costs under control. For very large collections, also consider the storage and search costs of the vector database, which grow with the number of vectors.
Measure and improve quality
What you do not measure you cannot improve. For semantic search this means evaluating results systematically, for example with a set of typical queries for which you know the relevant documents, measuring whether the system finds them and ranks them highly. And keep perspective: for a small, well-structured dataset with unambiguous terms, good keyword search can be entirely sufficient. Use semantic search where meaning and paraphrase really matter. The building blocks are explained in our glossary entries on embeddings, chunking and vector databases; our offer for an AI chatbot on your own data puts them into practice.

