DEV Community

Cover image for How RAG works
Piyush Baraskar
Piyush Baraskar

Posted on

How RAG works

Learned about RAG Retrieval augmented generation
Which is used when a model need external data on which the data is not trained it is where Rag is used

Llm is not fine tuned instead the external data is divided into smaller chunks. Each chunk is converted into an embedding and is stored in the vector databases and the model can retrieve which chunk of info to used depending on the prompt

Now check
Each chunk is embedded

It is used when you.want to add your own data on the llm

Top comments (0)