RAG and VectorDB are related concepts, but they are not interchangeable.
RAG is an acronym that stands for Recursive Automaton Generator. It is a method for automatically generating a context-free grammar, which is a formal way of representing natural language syntax. The output of the RAG algorithm is a set of rules that can be used to generate any string that can be generated by a context-free grammar.
VectorDB is a database system that is designed to store and query large datasets that are represented as high-dimensional vectors. It is particularly useful for storing and querying data that has a natural vector representation, such as word embeddings. VectorDB provides a flexible and scalable way to store and query such data, and it is often used in natural language processing applications.
While RAG and VectorDB are related, they serve different purposes. RAG is a method for generating a context-free grammar, which is a formal representation of natural language syntax. VectorDB is a database system that is designed to store and query high-dimensional vectors, which are a common representation of natural language data.
To answer your question about the history of word embeddings, you are correct that the term "word embeddings" is sometimes used to refer to the output of the Word2Vec algorithm, which is a method for generating high-dimensional vector representations of words. Word2Vec was developed before the development of the LLM architecture, and it is still widely used in natural language processing applications today. However, it is worth noting that there have been many other algorithms developed since then, and each of them has its own strengths and weaknesses.