RAG 與知識系統

Embedding Vectors Explained: A Semantic Map Shows Why Vector Search Works

An employee searches for "car accident third-party liability" and gets nothing from three thousand claim documents. The documents are labeled as "traffic accident cross-party recovery" instead. Same situation, different wording, keyword search fails. Embedding vectors transform each piece of text into a coordinate on a semantic map, replacing "exact word match" with "similar meaning." This is the foundation of enterprise RAG systems. This article explains why vector search works better than keyword search.

By

Tenten AI 研究團隊

AI 基礎設施

Published

January 25, 2026

Read time

5 分鐘

embedding向量向量檢索RAG企業知識系統語意搜尋AI知識庫導入

What's an embedding vector? One-sentence definition

An embedding vector compresses text (or images, audio) into numeric coordinates so that similar content lands in nearby locations on a semantic map. Every word, sentence, and document has its own position: 'termination' and 'layoff' cluster together, while 'termination' and 'banana' stay far apart.

The question becomes: why does this map work better than keyword search?

The limits of keyword search

A concrete example: an insurance company stored three thousand claim documents internally. An employee searched for 'car accident third-party liability' and found nothing. The documents existed, but were labeled as 'traffic accident cross-party recovery' instead. Same problem, two different phrasings, and the search returned zero results.

Keyword matching requires exact text overlap or manually maintained synonym lists. It cannot recognize that 'cross-party' and 'third-party' mean roughly the same thing. Chinese suffers especially: word segmentation inconsistencies, simplified versus traditional characters, technical jargon, internal abbreviations. Any mismatch produces nothing.

How semantic maps address this

Embedding takes a different approach. Instead of comparing words, it compares coordinates that represent meaning.

Input all three thousand documents into an embedding model. Each receives a set of coordinates plotted on a single semantic map. When a user types 'car accident third-party liability,' that phrase converts to a coordinate point. The system finds the nearest points on the map.

'Traffic accident cross-party recovery' shares no matching characters, but because it describes the same event, its coordinate falls near the query point. The system retrieves it. Vector search operates this way: convert content to semantic coordinates, then replace 'exact word match' with 'distance-based match.'

Keyword search vs. vector search

FactorKeyword SearchVector Search (Embedding)
Matching methodText must be identicalSemantic coordinates must be close
Different phrasings, synonymsWon't find them, need manual synonym maintenanceHandles naturally out of the box
Chinese word segmentation, abbreviations, jargonFails easilyMinimal impact
Setup costLow, almost plug-and-playRequires model selection, chunking, indexing
Best use casesExact codes, part numbers, regulation IDsConcept-based, natural language queries

Vector search is not a solution for every problem. For exact strings like 'part number A-3271' or specific regulation IDs, keyword search remains more reliable and faster. The two approaches complement each other.

Semantic coordinates span hundreds of dimensions

Two-dimensional maps are easy to visualize. Real embedding coordinates typically span 768, 1,536, or more dimensions. More dimensions support finer semantic distinctions. The word 'apple' in financial contexts lands near 'earnings' and 'iPhone'; in recipe contexts, near 'peeling' and 'sweetness.' Systems measure closeness using vector angles, with cosine similarity being common. Smaller angles indicate closer meaning.

The specific numbers matter less than one principle: when employee questions and document phrasing will never align exactly, literal search becomes insufficient. Semantic coordinates are necessary.

Embedding's role in RAG and enterprise knowledge systems

Embedding forms the foundation of RAG (retrieval-augmented generation). Before an LLM answers, RAG retrieves relevant data from the company's knowledge base and grounds the response in that data. The retrieval step depends on vector search. Poor foundation work, such as careless document chunking, incorrect embedding model selection, and misalignment of Chinese and specialized terminology, produces fluent-sounding AI responses that quote wrong passages.

Implementing knowledge systems requires most effort not on the model itself, but on building the semantic map accurately: how documents are chunked, which embedding model is selected, whether Chinese and internal terminology align properly. Polished demonstrations alone do not confirm success. The map is truly built only when employees search it daily, find what they need, and actually use the results.

One stuck workflow
is enough to begin

Tell us what the team does today, where it breaks down, and what a better working day should look like.