AgriIR: A Scalable Framework for Domain-Specific Knowledge Retrieval
Organizations: Indian Institute of Science Education and Research, Kolkata, India · Institute of Engineering & Management, Kolkata, India
Abstract
This paper introduces AgriIR, a configurable retrieval augmented generation (RAG) framework designed to deliver grounded, domain-specific answers while maintaining flexibility and low computational cost. Instead of relying on large, monolithic models, AgriIR decomposes the information access process into declarative modular stages -- query refinement, sub-query planning, retrieval, synthesis, and evaluation. This design allows practitioners to adapt the framework to new knowledge verticals without modifying the architecture. Our reference implementation targets Indian agricultural information access, integrating 1B-parameter language models with adaptive retrievers and domain-aware agent catalogues. The system enforces deterministic citation, integrates telemetry for transparency, and includes automated deployment assets to ensure auditable, reproducible operation. By emphasizing architectural design and modular control, AgriIR demonstrates that well-engineered pipelines can achieve domain-accurate, trustworthy retrieval even under constrained resources. We argue that this approach exemplifies ``AI for Agriculture'' by promoting accessibility, sustainability, and accountability in retrieval-augmented generation systems.
Figures & tables
| Model | Answer (0-4) | Citation (0-2) | Composite (0-1) | |||
|---|---|---|---|---|---|---|
| Mean Std | % Good ( 3) | Mean Std | % Perfect (2) | Mean Std | Rank | |
| ChatGPT-4o | 3.36 0.94 | 88.5 | — | — | 0.840 0.233 | 1 |
| AgriIR _Gemma3:27B | 3.24 0.87 | 86.9 | 1.69 0.55 | 73.0 | 0.820 0.208 | 2 |
| Gemini 2.5 Flash | 3.12 1.01 | 78.7 | — | — | 0.779 0.250 | 3 |
| AgriIR _Llama3.2:3B (w/o DB) | 2.72 1.12 | 68.0 | 1.62 0.64 | 69.7 | 0.718 0.252 | 4 |
| GPT-OSS-120B | 2.82 0.99 | 70.5 | — | — | 0.705 0.246 | 5 |
| Comparison | Δ Mean | t-test | Welch | Mann-W | Cohen’s d |
|---|---|---|---|---|---|
| AgriIR vs Baselines | |||||
| Gemma3:27B vs ChatGPT-4o | -0.020 | 0.493 | 0.493 | 0.381 | 0.08 (negl.) |
| Gemma3:27B vs Gemini 2.5 | +0.041 | 0.046* | 0.046* | 0.038* | 0.16 (small) |
| Gemma3:27B vs GPT-OSS | +0.115 | <0.001*** | <0.001*** | <0.001*** | 0.45 (med.) |
| Within AgriIR Framework | |||||
| Gemma3:27B vs Gemma3:1B | +0.172 | <0.001*** | <0.001*** | <0.001*** | 0.82 (large) |
Retrieval-Augmented Generation
Retrieval-augmented generation connects language models to external knowledge so answers can use current, domain-specific evidence.
See all 792 papers