CUGA’s Indic Voice Agent Enhances Multilingual Farming Assistance

Overview of the Indic Voice Agent

IBM Research introduced a voice agent designed to assist farmers by answering questions in various Indic languages. This innovative prototype listens to spoken inquiries, converts them into text, searches a comprehensive 154-page agricultural handbook written in English, and provides concise spoken responses in the user’s language while displaying the relevant source pages.

Integration with CUGA

The voice agent operates using CUGA (ConfigUrable Generalist Agent), an open-source framework that manages model wiring, tool integration, state management, and guardrails. CUGA functions as a core that processes text input and output, with audio layers for speech-to-text and text-to-speech. This setup allows for seamless switching between different model providers, including watsonx and OpenAI, through a simple configuration setting.

Handling Multilingual Queries

A significant challenge faced by the developers was cross-lingual retrieval. Initially, an English-only embedding model struggled to accurately match Hindi or Tamil questions with the correct English passages. To address this, the team implemented a multilingual embedding model, intfloat/multilingual-e5-large, which enables a single English document to effectively serve queries in multiple languages without the need for translation.

Voice Processing and Security Measures

The project supports two speech processing options: Sarvam AI’s cloud speech APIs accessed directly from the user’s browser and open-source models (SraVaani for speech-to-text and Svara for text-to-speech) hosted on a server. Importantly, when utilizing Sarvam, user keys are kept off the server, ensuring enhanced security.

Guardrails and Off-Topic Queries

The developers implemented straightforward guardrails to manage off-topic queries effectively. Input checks are in place to filter out irrelevant questions. If an off-topic query slips through, the agent responds with an “OFF_TOPIC” message, and the application redirects the user politely. This design choice ensures that the voice interaction remains efficient and focused on relevant topics.

Getting Started with CUGA

For those interested in exploring this technology, a step-by-step tutorial titled Build an Indic Voice Agent with CUGA is available, along with a demo in CUGA Apps on Hugging Face Spaces for hands-on testing.


Original source: Hugging Face Blog

Leave a Comment