IBM Research has introduced a voice agent capable of answering agricultural questions in several Indian languages, based on a manual written in English. The prototype relies on CUGA, an open-source software framework from IBM Research designed to build artificial intelligence agents, and remains accessible online for testing.
An Agricultural Assistant That Speaks
The scenario involves a farmer asking a question aloud, in their own language, for example: how to distinguish a good seed from a bad one? The agent first transcribes speech to text, then searches for the answer in a 154-page agricultural manual, written in English. It then responds in two to four spoken sentences, in the language of the question, relying solely on the manual’s content. The answer is read aloud and the source pages are displayed, allowing the user to verify it.
If the question is about cricket or programming, the agent politely declines and steers the conversation back to agriculture, rather than inventing an answer.
A Text-Based Architecture
CUGA, for ConfigUrable Generalist Agent, handles the connection to models, tool management, conversation state, and safeguards. Developers then write the tools and instructions, without having to design the agent’s loop. Here, the framework is integrated as a development kit into a web application, for three functions: a single agent can switch from watsonx to OpenAI with one parameter, a knowledge engine splits a PDF, converts it to vectors, and searches it locally, and each question opens a separate conversation thread.
The core principle is simple: CUGA only processes input and output text. Voice is just a layer added on either side, allowing the agent to be tested in writing before adding speech recognition and synthesis. Speech providers are interchangeable. The prototype supports the cloud APIs of Sarvam AI, called directly from the user’s browser, as well as two open-source models, SraVaani for speech recognition and Svara for synthesis, hosted on a dedicated server.
The Real Challenge: Finding the Right Passage
According to the authors, voice is the simplest part. The difficulty lies in cross-lingual search: a question in Hindi must find a paragraph written in English. The search works by transforming each text into vectors, i.e., numerical representations, then retaining the closest ones. CUGA’s default embedding model only handles English. It therefore transforms Hindi into vectors that carry almost no meaning, and a question in Hindi or Tamil retrieves five passages, but the wrong ones.
The language model, instructed to answer only from the passages it receives, then indicates that the manual does not cover the topic. No error or warning appears, because each layer is functioning correctly. The solution is to use a multilingual embedding model, in this case intfloat/multilingual-e5-large, which places the same meaning in the same location regardless of language. Integrating it into CUGA required a workaround, described in the tutorial. A single English document then suffices for all languages.
The authors’ advice is to ask, before any instruction tuning, a question in a language other than English, and verify that the agent finds the correct pages.
IBM also presents IBM Bharat Core, an optimized AI stack, built on top of IBM Sovereign Core and intended for the Indian ecosystem, to run AI applications in Indian languages on local infrastructure.
