Embedding Model
A model that converts unstructured data such as text and images into high-dimensional dense vectors to capture semantic information. Embedding models support semantic similarity computation and retrieval, and serve as a core component of Retrieval-Augmented Generation (RAG) systems.
Core Facts
RAG splits documents into semantic chunks, converts them into high-dimensional vectors via an embedding model and stores them in a vector database, then retrieves the most semantically similar document fragments at query time through approximate nearest neighbor (ANN) search.
Embedding models typically map text into high-dimensional vector spaces of 768 or 1536 dimensions.
Embedding是将文本转换为高维数值向量的过程,语义相近的文本在向量空间中距离更近
Timeline (last 90 days)
Embedding models (such as BGE, Qwen-embedding, GME-embedding-VL) are responsible for mapping text or images into dense vectors, and determine "whether recall is possible".
Embedding models and conversational large models are two separate sets of models: the former handles retrieval and the latter handles answering, and choosing the wrong embedding model will lead to inaccurate retrieval and irrelevant answers.
In the Ollama model library, models with the Embedding tag turn text into vectors and only do retrieval and knowledge bases; they cannot chat.
In RAG, the choice of chunk granularity and Embedding model directly determines retrieval quality.
Embedding models and generative models are two different types of models: the former outputs fixed-dimension vectors, while the latter outputs text.
No matter how complex any RAG system is, it essentially has only two steps: the first step is to fill the library (load documents, split into chunks, embed, and store in a vector database), and the second step is to retrieve information (convert the user's question into a vector, retrieve the closest chunks, and hand them together with the original question to the LLM to generate an answer).
In a RAG system, the two steps of building the library and retrieval must use the same Embedding model, otherwise the two models have different definitions of similarity, the vector spaces cannot be aligned, and the retrieval results will deviate severely.
Embedding models map queries and documents into the same vector space and match them using measures such as cosine similarity; when a query uses domain abbreviations, internal codenames, or wording whose distribution differs greatly from the training corpus, the correct document may be ranked very far down or may not even appear in the candidate set.
The solution described in this article emphasizes that both the language model and the vector model are deployed locally, rather than calling external cloud-based APIs.
The preparation stage for building a vector database requires splitting private documents into smaller chunks, converting them into vectors via an Embedding model, and then storing them in the vector database.
13 more timeline events
All Facts (20)
RAG splits documents into semantic chunks, converts them into high-dimensional vectors via an embedding model and stores them in a vector database, then retrieves the most semantically similar document fragments at query time through approximate nearest neighbor (ANN) search.
80%VerifiedEmbedding models typically map text into high-dimensional vector spaces of 768 or 1536 dimensions.
80%VerifiedEmbedding是将文本转换为高维数值向量的过程,语义相近的文本在向量空间中距离更近
80%VerifiedEmbedding models convert text into fixed-dimensional floating-point vectors, placing semantically similar content closer together in the vector space, and serve as the core foundation of RAG technology.
75%VerifiedThe core function of an Embedding model is to convert a piece of plain text into a vector.
65%VerifiedText is encoded by an Embedding model into floating-point vectors of 768 to 3072 dimensions, stored in a vector database, and similarity retrieval is completed at millisecond speed via approximate nearest neighbor algorithms (HNSW, IVF, etc.).
65%UnverifiedEmbedding models and generative models are two different types of models: the former outputs fixed-dimension vectors, while the latter outputs text.
60%UnverifiedThe vector dimensions output by different embedding models range from 768 to 3072; higher dimensions generally provide stronger semantic representation capability but incur greater storage and computation overhead
60%UnverifiedEmbedding models are neural networks that map text to a continuous vector space, with the core assumption that semantically similar texts should have vectors that are close in distance.
60%UnverifiedVectorizing documents and vectorizing user queries must use the same embedding model; otherwise, incompatible vector spaces render similarity calculations meaningless.
60%UnverifiedEmbedding models (such as BGE, Qwen-embedding, GME-embedding-VL) are responsible for mapping text or images into dense vectors, and determine "whether recall is possible".
50%UnverifiedEmbedding models and conversational large models are two separate sets of models: the former handles retrieval and the latter handles answering, and choosing the wrong embedding model will lead to inaccurate retrieval and irrelevant answers.
50%UnverifiedIn the Ollama model library, models with the Embedding tag turn text into vectors and only do retrieval and knowledge bases; they cannot chat.
50%UnverifiedIn RAG, the choice of chunk granularity and Embedding model directly determines retrieval quality.
50%UnverifiedNo matter how complex any RAG system is, it essentially has only two steps: the first step is to fill the library (load documents, split into chunks, embed, and store in a vector database), and the second step is to retrieve information (convert the user's question into a vector, retrieve the closest chunks, and hand them together with the original question to the LLM to generate an answer).
50%UnverifiedIn a RAG system, the two steps of building the library and retrieval must use the same Embedding model, otherwise the two models have different definitions of similarity, the vector spaces cannot be aligned, and the retrieval results will deviate severely.
50%UnverifiedEmbedding models map queries and documents into the same vector space and match them using measures such as cosine similarity; when a query uses domain abbreviations, internal codenames, or wording whose distribution differs greatly from the training corpus, the correct document may be ranked very far down or may not even appear in the candidate set.
50%UnverifiedThe solution described in this article emphasizes that both the language model and the vector model are deployed locally, rather than calling external cloud-based APIs.
50%UnverifiedIn the RAG retrieval process, the user's question is first passed to an Embedding model to be converted into a vector, then similarity calculations are performed in a vector database to retrieve the top-K most relevant documents, which are then concatenated with the original question and passed to the large model to generate an answer.
50%UnverifiedThe preparation stage for building a vector database requires splitting private documents into smaller chunks, converting them into vectors via an Embedding model, and then storing them in the vector database.
50%