What is RAG (retrieval-augmented generation)?

RAG means finding relevant passages from your own documents and adding them to the prompt so the model answers from them.

Definition

RAG means finding relevant passages from your own documents and adding them to the prompt so the model answers from them.

How it works on TokenRex

You need an embedding model for search and a chat model for answers, both available with one key.

Get API keyCost calculatorDocs

Related