Why did you use different models for RAG and the agent instead of one shared model?
Asked at
AI answer
RAG and an agent have different requirements. In RAG, the model usually generates an answer based on the retrieved context, so source fidelity, the ability to handle long contexts, reliability, and cost across a large number of queries are important. An agent also needs reliable planning, tool selection, and correct handling of tool results; this may require a more capable model, even if it is more expensive or slower.
Using two models makes it possible to balance quality, latency, and cost at each stage. However, this is not a required architecture: if one model meets the requirements of both use cases, it can be used for both. The decision should be validated through evaluation on representative tasks and by considering the system’s total cost.
Also asked at Цифровые технологии и платформы
Similar questions
- Which models were used in the RAG system and the agent?
- Why did you choose ReAct for the agent rather than other approaches (for example, Plan-and-Execute or multi-agent systems)?
- You used GigaChat for RAG. Why GigaChat in particular?
- Why not build the prompt on the fly instead of creating different agents, and how was this implemented in the code?
- Was RAG implemented in the product-card agent?