According to Hugging Face, most digitized knowledge is available in English, but the people who need it often speak and think in their own regional languages. Many prefer to speak rather than type. The agent responds to questions in the user's own language, then provides answers on farming topics.

The agent was built using CUGA, an open-source agent harness created by IBM Research. CUGA handles model wiring, tool management, state management, and guardrails, allowing developers to focus on writing tools and prompts rather than building agent logic from scratch. For this application, CUGA is embedded as an SDK inside a small web application.

The technical architecture is straightforward: CUGA is a text-in, text-out system at its core. Voice is implemented as two thin layers around this brain—allowing the same underlying agent to be tested with text first, then enhanced with speech capabilities. Users can choose between two speech providers: Sarvam AI's cloud-based speech APIs or open-source alternatives (SraVaani for speech-to-text and Svara for text-to-speech).

A key technical challenge emerged during development: cross-lingual retrieval. When a farmer asks a question in Hindi or Tamil, the system must find relevant English-language agricultural documents. The initial approach failed—when CUGA's English-only embedding model converted non-English questions to vectors, they carried almost no semantic meaning, retrieving wrong passages. The fix was to use a multilingual embedding model (intfloat/multilingual-e5-large), ensuring that the same concept maps to the same vector space regardless of language. This allows one English document to serve all languages without needing translations.

The agent includes safeguards: if asked off-topic questions about cricket or coding, it redirects the conversation back to farming rather than fabricating answers. The working agent is available to try in CUGA Apps.

Original sourceHugging Face ↗

Read the original announcement for complete details and context.

Independent editorial summary based on the original announcement. Illustration is conceptual.

Back to all stories