Skip to main content
Sarvam AI is an LLM plugin tuned for Indian languages. It takes the transcribed conversation and generates the reply, with optional Wikipedia grounding.
Sarvam AI is also available as a speech-to-text plugin.

Setup

Set your Sarvam AI API key in the worker environment. Generate a key from the Sarvam AI dashboard:
The runtime picks up SARVAMAI_API_KEY from the worker environment. If you pass the key directly to the constructor’s api_key parameter and leave it unset, the SDK falls back to the SARVAM_API_KEY environment variable instead.

Usage

Import the plugin and pass it to the pipeline’s llm slot.

Configuration Options

Constructor parameters for SarvamAILLM. The Python and Node JS SDKs share these field names.

Import paths

The reply is streamed to the text-to-speech plugin, which synthesizes the agent’s voice.