← Back to Concept Contrast

Concept Contrast Fable

Turning content into numbers and a warehouse to store those numbers

Conclusion first:Embedding is the process of converting text, images and other content into vector numeric representations. A Vector Database is a database system specifically used to store, index and retrieve these vectors. Having Embedding does not mean having retrieval capability, and having a retrieval system does not mean Embedding quality is high.

Embedding is the process of converting text, images and other content into vector numeric representations. A Vector Database is a database system specifically used to store, index and retrieve these vectors. Having Embedding does not mean having retrieval capability, and having a retrieval system does not mean Embedding quality is high.

Fable

The scribe and the codebook: two things that must not be mixed up

In the county town there was a large academy that held many ancient books. The director wanted students to find materials faster, so he asked two assistants to come up with ideas. Assistant A copied the important content of each book into a code—a very long string of numbers. Each book's code was different, and books with similar meanings had similar codes. Assistant B built a code repository next to the academy, stored all the codes according to a catalog, and also designed a similarity-based retrieval method.

Assistant A finished the first batch of codes and proudly handed them to the director. The director asked how students would use these codes to look up materials. Assistant A said the codes were already written—just look them up. The director asked where to look them up, how to enter them, how similarity is calculated. Assistant A said that was outside his scope of work.

Assistant B came to report on the work and brought drawings for the code library. The director asked where the codes were, and Assistant B said they were still waiting for Assistant A to deliver them. The director asked, weren't you doing it together? Assistant B said Assistant A was only responsible for copying the codes, while building the library was his work, and the two had been set up as separate projects.

Later, Assistant A finally finished copying all the secret codes, and Assistant B entered them into the code library. While entering them, Assistant B discovered that some codes were written sloppily, with several digits wrong; some books had been copied as codes, but the copyist did not understand the technical terms, so the resulting codes were completely distorted. Assistant B asked Assistant A whether they could recheck, and Assistant A said he was only responsible for copying, not for the content.

On the first retrieval after the code library was built, the director found the results very strange. Searching "business risk" returned all "financial reports," which looked related but on closer inspection were not the same thing at all. Assistant B searched for a long time and said the code quality was the problem—some terms' codes had too high a similarity to the codes of terms in another domain and could not be distinguished.

The director later invited an old scholar to analyze the situation. The old scholar said: ciphers and cipher libraries are two different things. Ciphers solve the problem of packing knowledge into numbers; cipher libraries solve the problem of quickly finding those numbers. Your current trouble is that no one is responsible for whether the ciphers are good or bad, and no matter how fast the cipher library is built, it is useless.

Later the academy set two rules: whoever writes the cipher must be accountable for the source text, and cipher quality is spot-checked at acceptance; the cipher library's index structure is evaluated once a year and adjusted by retrieval hit rate. The two things became sequential links in one chain, not two independent work packages.

Embedding vector representation

Convert text, images, and other content into high-dimensional vectors so that semantically similar content is close in vector space. It is the input to a retrieval system, but does not itself solve storage and retrieval efficiency problems.

Vector database

A database system specifically for storing and retrieving vector data, supporting fast nearest-neighbor search by similarity. It relies on Embeddings to provide high-quality input and cannot improve input quality by itself.

Story Mapping

  • Assistant A copies the code: Embedding, converting content into vector numerical representations
  • Assistant B builds a secret code library: Vector Database, storing and indexing vectors, supporting similarity retrieval
  • The embeddings are ready, but there's no way to look them up: you have embeddings but no retrieval system, so they're unusable
  • The codebook is built but the codes have not been delivered: only a retrieval system with no Embedding input, an empty database
  • Sloppy code numbers misaligned and meanings twisted: poor Embedding quality causes systematic bias in retrieval results
  • Prompts and the prompt library are sequential stages, not independent work packages: the two must be designed and accepted together

Applying this to RAG system selection

When building a RAG system, you cannot focus only on the performance metrics of the vector database; you must also evaluate whether the Embedding model suits your domain. General-purpose Embeddings often perform poorly on documents dense with specialized terminology, causing systematic bias in similarity retrieval. The selection order should be: first confirm that the Embedding performs acceptably on your document types, then choose the retrieval system, and finally design the storage and update process. Both are indispensable, but Embedding is the prerequisite—a poor Embedding cannot be saved by the best vector database.

京ICP备2026014272号