How does a voice agent answer farmers in Hindi using an English handbook?
IBM Research built a voice agent that lets farmers ask questions in their own language and get answers from an English agricultural handbook. The system uses CUGA, an open-source agent harness, to handle the reasoning while speech layers stay thin.
What the agent actually does
A farmer speaks a question aloud — how do I tell good seed from bad — in Hindi, Tamil, Telugu, Gujarati, Marathi or another regional language. The agent listens, turns the speech into text, searches a 154-page handbook written in English, and answers in two to four spoken sentences using only what the handbook says. It speaks the answer back in the same language the question was asked in. It also shows the source pages so the answer can be checked. If someone asks about cricket or coding, the agent politely steers them back to farming instead of making something up.
The harness behind this is CUGA — ConfigUrable Generalist Agent — IBM Research's open-source agent framework released under Apache 2.0. It handles model wiring, tool management, state and guardrails so developers write tools and a prompt instead of the agent loop. In this project it runs as an embedded SDK inside a small web app doing three things: one agent that can switch between watsonx and OpenAI with one setting; a knowledge engine that parses a PDF, chunks it, embeds it and searches it locally with agent.knowledge.search(); and conversation threads that give each question a fresh thread so one person's language or context never leaks into another's.
The key design idea is simple. CUGA is a text-in, text-out brain. Voice is two thin layers around it. Audio goes to speech-to-text, then to knowledge search, then to CUGA for a grounded answer, then to text-to-speech, then back to audio. Because the agent only ever sees text, you can build and test it with plain text first, then add the ears and the mouth. You can also swap speech providers without touching the agent. The system supports two: Sarvam AI's cloud speech APIs called directly from the user's browser, and open-source models — SraVaani for speech-to-text and Svara for text-to-speech — running on your own server.
Why cross-lingual search broke and how they fixed it
Adding speech is the easy part. The hard part is cross-lingual retrieval: a Hindi question has to find an English paragraph. Search works by turning text into vectors and finding the nearest ones. CUGA's default embedding model is English-only, so it turns Hindi into vectors that carry almost no meaning. With it, a Hindi or Tamil question still retrieves five passages, but they are the wrong ones. The model, correctly told to answer only from what it was given, quietly says the handbook doesn't cover that. Every layer behaves correctly, so there is no error and no warning.
The fix is to use a multilingual embedding model — they use intfloat/multilingual-e5-large — so the same meaning lands in the same place whatever the language. Conceptually simple, though wiring it into CUGA took a small workaround shown in the tutorial. After that, one English document serves every language, and you do not need translated copies of anything. Their advice: before you tune a single prompt, ask your agent one question in a non-English language and check that it finds the right pages.
Small choices that kept the voice fast and safe
A few small decisions mattered more than expected.
Write for the ear. Markdown and bullet points sound wrong when read aloud. Citation tags and bracketed translations such as "millet (बाजरा)" also sound wrong. The prompt asks the model not to produce them, and a light formatter strips any that slip through before speech.
Keep guardrails cheap. Simple input checks catch obvious off-topic questions. If one gets through, the model starts its reply with OFF_TOPIC, and the app swaps in a polite redirect. No second LLM call, so the voice path stays fast.
Ground every answer. The model sees only the retrieved passages, is told not to use outside knowledge, and the page sources are shown to the user.
Server never sees keys. With the Sarvam option, the browser talks to Sarvam directly. The server receives only text and never sees the user's key.
You do not need to set anything up to see it work. Open the voice agent in CUGA Apps on Hugging Face Spaces, ask a farming question in your language, and listen to the answer. A step-by-step tutorial, Build an Indic Voice Agent with CUGA, starts from an empty folder and adds each layer in turn.
What changes when you swap the handbook
Nothing here is specific to agriculture. Swap the handbook for scheme documents, health advisories, or legal guides, and you have a different assistant. Swap the speech provider and you change the deployment model — cloud for speed or on-premises for data sovereignty — without rewriting the agent. Voice-first, multilingual assistants are how digital services can reach people who were never served well by English-only text screens. Building them on an open, auditable harness, with answers tied to sources people can check, is how they earn trust.
This approach sits at the intersection of what IBM is building with Bharat Core. Bharat Core is an optimized AI stack built on top of IBM Sovereign Core, designed specifically for the Indian ecosystem to run Indic AI workloads securely on local infrastructure. When scaling a voice agent from a prototype to a secure enterprise application — such as a vernacular KYC system or multilingual government bot — you need greater control over data sovereignty. Pairing CUGA's flexible agent harness with Bharat Core's ready-to-deploy Indic connectors and fine-tuned models lets developers build fully compliant, sovereign AI solutions tailored to India's linguistic diversity.
Resources for getting started include cuga.dev for the home page, and GitHub for the open-source harness. Documentation covers setup and configuration. A gallery of apps on Hugging Face Spaces lets you try them in your browser. The gallery holds CUGA Agent for a general-purpose agent running on a demo CRM scenario, and CUGA Apps to launch working apps from one dashboard. CUGA Policy Playground shows two live agents side by side — one with policies and one without.
The sources this article was written from
- "Hugging Face blog
https://huggingface.co/blog/ibm-research/an-indic-voice-agent-with-cuga"