RAG Customization
RAG (Retrieval-Augmented Generation) in R2R can be extensively customized to suit various use cases. The main components for customization are:- Generation Configuration: Control the language model’s behavior.
- Search Settings: Fine-tune the retrieval process.
- Task Prompt Override: Customize the system prompt for specific tasks.
LLM Provider Configuration
Refer to the LLM configuration page here.Retrieval Configuration
Refer to the retrieval configuration page here.Combining LLM and Retrieval Configuration for RAG
Therag_generation_config
parameter allows you to customize the language model’s behavior. Default settings are set on the server-side using the r2r.toml
, as described in in previous configuraiton guides. These settings can be overridden at runtime as shown below: