giri164 GitHub avatar

krishi-sahayak

giri164

Krishi Sahayak is an AI-powered assistant that uses RAG and a fine-tuned Qwen2.5-3B model to help Indian farmers determine their eligibility for government agricultural schemes.

Stars

5

7-day growth

No data

Forks

0

Open issues

0

License

No data

Last updated

2026-07-28

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It combines fine-tuned LLM with retrieval-augmented generation to provide accurate and explainable scheme recommendations, with intelligent follow-up questions when information is missing.

Who it is for

  • Indian farmers
  • agricultural extension officers
  • government welfare advisors
  • AI-for-social-good developers

Use cases

  • Check eligibility for PM-KISAN, PMFBY, Kisan Credit Card
  • Get required document lists based on farmer profile
  • Navigate government scheme options interactively
  • Assist in rural digital service delivery

Strengths

  • Uses QLoRA fine-tuning on a 3B-parameter model for domain adaptation
  • Integrates RAG with ChromaDB for up-to-date scheme retrieval
  • Includes an evaluation pipeline comparing base LLM, RAG-only, and RAG+fine-tuned
  • Gradio chatbot enables easy interaction and testing

Considerations

  • Relies on synthetic training data which may limit real-world robustness
  • Currently supports only Indian government schemes
  • No built-in real-time scheme updates (listed as future improvement)
  • Requires technical setup (pip install, Colab) not fully plug-and-play for non-developers

README quick start

🌾 Krishi Sahayak

AI-Powered Farm Scheme Eligibility Assistant using RAG & Fine-Tuned LLM

Krishi Sahayak is an AI-powered assistant designed to help Indian farmers identify the government agricultural schemes they are eligible for. Instead of relying on static rule-based systems or generic chatbots, the project combines Retrieval-Augmented Generation (RAG) with a QLoRA fine-tuned Qwen2.5-3B language model to provide accurate, explainable, and context-aware recommendations.

The assistant retrieves the latest scheme information from a vector database and reasons over the farmer's profile before generating a response. When essential information is missing, the model intelligently asks follow-up questions instead of making incorrect assumptions.


🚀 Features

  • 🌾 Government scheme eligibility prediction
  • 🤖 Fine-tuned Qwen2.5-3B using QLoRA
  • 📚 Retrieval-Augmented Generation (RAG)
  • 🔍 ChromaDB vector database
  • 🌐 Multilingual sentence embeddings
  • 📄 PDF/knowledge retrieval support
  • 💬 Intelligent clarification questions
  • 📊 Evaluation pipeline
  • 🎯 Gradio-based interactive chatbot
  • ⚡ Google Colab compatible

🛠 Tech Stack

AI & Machine Learning

  • Python
  • Hugging Face Transformers
  • PEFT (QLoRA)
  • BitsAndBytes
  • Sentence Transformers

RAG

  • ChromaDB
  • Cross Encoder Reranker
  • Multilingual Embeddings

LLM

  • Qwen2.5-3B
  • LoRA Fine-Tuning

Frontend

  • Gradio

Data

  • JSON Knowledge Base
  • Synthetic Instruction Dataset

📂 Project Structure

krishi-sahayak/
│
├── app/
│   └── app.py
│
├── rag/
│   ├── build_index.py
│   └── retriever.py
│
├── finetune/
│   ├── train_qlora.py
│   └── inference.py
│
├── data/
│   ├── schemes.json
│   └── generate_synthetic_data.py
│
├── eval/
│   ├── evaluate.py
│   └── test_profiles.json
│
├── requirements.txt
├── README.md
└── LICENSE

🏗 System Architecture

              Farmer Query
                    │
                    ▼
        ┌────────────────────┐
        │   User Profile      │
        └─────────┬───────────┘
                  │
                  ▼
        ┌────────────────────┐
        │   RAG Retriever     │
        │ (Chroma + Embedding)│
        └─────────┬───────────┘
                  │
          Relevant Documents
                  │
                  ▼
      ┌────────────────────────┐
      │ Fine-Tuned Qwen2.5-3B   │
      │

Description

Krishi Sahayak is an AI-powered agricultural assistant that combines RAG (Retrieval-Augmented Generation) and QLoRA fine-tuned Qwen2.5-3B to help Indian farmers determine eligibility for government schemes using multilingual embeddings, ChromaDB, and intelligent reasoning.

Related repositories

Similar projects matched by category, topics, and programming language.

MoonshotAI
Featured
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI & Machine LearningAI Agents
3,348
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660
makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958