The Inspiration Behind SafalFasal

The inspiration for this project stems from observing the vital role of agriculture in India and the persistent challenges faced by its small and marginal farmers. A significant information gap hinders their profitability, stemming from a lack of access to real-time market data and difficulty navigating complex government schemes. Furthermore, existing digital platforms often present insurmountable language and literacy barriers. This led to the concept of SafalFasal: a solution designed to be accessible through voice in a farmer's native language, delivering the power of AI to address these critical needs directly.


My Learning Goals

This hackathon serves as an ideal opportunity to develop key skills in applied artificial intelligence. My objectives are:

  • To Implement an Agentic AI Workflow: My primary goal is to move beyond theory and gain practical experience building a true AI agent. I aim to implement a system that can understand a complex user goal, utilise a suite of tools to gather information, and synthesise a coherent solution using the IBM Agent Development Kit (ADK).
  • To Apply User-Centric Design Principles: Developing a solution for a non-technical audience will be a valuable exercise in user-centric design. I will focus on delivering outputs that are simple, trustworthy, and immediately actionable, avoiding overwhelming the user with raw data.
  • To Address Real-World Data Integration Challenges: I anticipate learning a great deal from the process of cleaning, curating, and integrating messy, unstructured public data into a reliable backend for an AI application.

My Plan for Building SafalFasal

I have planned a structured, component-based development approach to build the SafalFasal prototype, leveraging IBM's open-source technologies.

  1. Foundation (Voice Interface): The initial step is to establish a voice-to-text pipeline to capture user queries in Hindi. I will develop a lightweight web interface using Streamlit for broad accessibility.

  2. Core Logic (Reasoning and Intent): The IBM Granite model will serve as the project's core, analysing transcribed text to accurately identify user intent and extract key entities such as crop type and location.

  3. Workflow (Orchestration): A key technical phase will involve using the IBM Agent Development Kit (ADK) to construct the agentic workflow. The ADK will function as an orchestrator, activating the appropriate tools based on the recognised intent from the Granite model.

  4. Tools (Data Retrieval): I will develop several modular tools for the agent's use:

    • A Market Analysis Tool to interface with public APIs (e.g., Agmarknet) for price data.
    • A Government Scheme Tool to query a curated database of relevant agricultural schemes.
    • A Crop Advisory Tool to provide contextual alerts regarding pests and weather.
  5. Response (Synthesis): Upon receiving data from the tools, the agent will pass the information back to the Granite model for synthesis. The model's final function is to generate a concise, actionable recommendation, delivered to the user via both text and synthesised voice.


Anticipated Challenges

I foresee several challenges in developing this prototype within the hackathon's timeframe:

  • Data Reliability and Unification: The fragmented nature of public agricultural data in India will be a significant hurdle. A key task will involve writing scripts to aggregate and unify data from multiple sources into a consistent knowledge base.
  • Complex Query Handling: User queries may contain multiple intents (e.g., requesting price information and subsidy eligibility simultaneously). Configuring the agent's logic to effectively manage these multi-part queries will be a primary technical challenge.
  • Simplicity of Output: A critical design challenge will be to distil complex, multi-source data into simple and clear recommendations. The focus must remain on providing outputs that are immediately understandable and trustworthy for the end-user.

The potential impact of this concept is significant, and I am prepared to tackle the challenges of building a functional prototype during the hackathon. SafalFasal is a vision for a future where technology can effectively empower India's agricultural sector.

Built With

  • adk
  • agmarknet
  • google-speech-to-text)-data-sources-&-apis:-public-government-apis-(e.g.
  • granite
  • ibm
  • openai-whisper
  • python
  • streamlit
Share this project:

Updates