Yakshagana Tala Prompter
Sarvam-105B translates Yakshagana tala cycles into Kannada movement cues so dancers hit precise beats; Sarvam-105B (Chat) counts them.
The primitive.
Choreographers ask in their own language; Sarvam-105B answers IN that language with wiki-grounded Indian context — traditional rhythm cues reasoned natively, not translated after the fact.
Why this primitiveSarvam-105B is the brain for traditional rhythm cues in Dance & Choreography because the reasoning must hold up IN an Indian language, with wiki-grounded answers about Indian context — not English translated after the fact.
Required key.
Add this in your Lovable project under Settings → Secrets before pasting the prompt below.
The build prompt.
Paste into a fresh Lovable project. Make sure the key above is set first. read the build strategy →
Build "Yakshagana Tala Prompter" as a Sarvam AI NATIVE one-shot Lovable build. The
participant has only 5 credits — this single message must produce a working
demo with no follow-ups. Single-page TanStack Start app. Cut scope ruthlessly.
CONCEPT
Sarvam-105B translates Yakshagana tala cycles into Kannada movement cues so dancers hit precise beats; Sarvam-105B (Chat) counts them.
Discipline: Dance & Choreography (traditional rhythm cues). Audience: Indian creators working in their own language.
Recipe: Sarvam-105B does the reasoning + Sarvam-105B (Chat) as the user-facing surface.
Why this Sarvam primitive: Sarvam-105B is the brain for traditional rhythm cues in Dance & Choreography because the reasoning must hold up IN an Indian language, with wiki-grounded answers about Indian context — not English translated after the fact.
LOVABLE BUDGET (HARD CAP: ONE-SHOT, ~5 CREDITS TOTAL):
The participant has FIVE Lovable credits for the whole build. This prompt MUST
ship a working demo on the FIRST message with zero follow-ups. Engineer for that.
- ONE TanStack Start app, ONE route (`src/routes/index.tsx`). No extra pages, no auth, no nav.
- AT MOST TWO TanStack server functions: one that calls Sarvam-105B for the
reasoning, one that calls the chosen Sarvam primitive (TTS / STT / Translate).
Fold them into one if the primitive needs no upstream text generation.
- ONE client surface (a button, a mic, a prompt box, a language switcher) wired
to those server fns.
- NO database, NO Lovable Cloud, NO auth, NO file uploads, NO extra integrations.
- NO tests, NO docs pages, NO settings screens, NO theming toggles.
- Libraries: template defaults + `ai` + `@ai-sdk/openai-compatible` + `zod`. Nothing else.
- Keep the diff small enough to land in one build pass. Cut scope before adding scope.
STACK
- TanStack Start app, the index route only.
- Sarvam AI is the ENTIRE backend. No OpenAI, no ElevenLabs, no Gemini, no
Whisper, no Lovable AI Gateway. Every model call goes to api.sarvam.ai.
- Client surface fits the kernel: a conversational surface that thinks and replies in the user's Indian language with culturally fluent reasoning.
- Tailwind + shadcn. Editorial look: gold accent on a warm cream / deep ink
background, generous Indian-script type (use a system stack that covers
Devanagari, Tamil, Bengali, Telugu, etc.).
- Footer renders: "Built during the Creative AI & Quantum Hackathon organised by StreetKode Fam during Indian Krump Festival 14".
BRAIN — Sarvam-105B via the OpenAI-compatible chat endpoint:
```ts
// src/lib/sarvam.server.ts
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
export function sarvam() {
return createOpenAICompatible({
name: "sarvam",
baseURL: "https://api.sarvam.ai/v1",
headers: { "api-subscription-key": process.env.SARVAM_API_KEY! },
});
}
```
Default chat model: `sarvam-105b`. Use `generateText` from `ai`. For factual
Indian-context answers, add `providerOptions: { sarvam: { wiki_grounding: true } }`.
Keep the system prompt and model call inside the server function — never call
Sarvam from the client. The model THINKS in the user's Indian language; ask it
to answer in `${languageCode}` (e.g. "hi-IN", "ta-IN").
SERVER FUNCTION (src/lib/think.functions.ts) — Sarvam-105B with wiki grounding for Indian context:
```ts
import { createServerFn } from "@tanstack/react-start";
import { generateText } from "ai";
import { z } from "zod";
import { sarvam } from "./sarvam.server";
/** Built during the Creative AI & Quantum Hackathon organised by StreetKode Fam during Indian Krump Festival 14 */
export const ask = createServerFn({ method: "POST" })
.inputValidator((d) => z.object({
question: z.string().min(1).max(800),
languageCode: z.string().default("hi-IN"),
}).parse(d))
.handler(async ({ data }) => {
const { text } = await generateText({
model: sarvam()("sarvam-105b"),
system: `You are a traditional rhythm cues expert for Indian creators. ` +
`Answer the user IN the language code ${data.languageCode}. ` +
`Be specific, use Indian references (places, ragas, festivals, schools), keep it under 180 words. ` +
`When you state facts, ground them in Wikipedia.`,
prompt: data.question,
providerOptions: { sarvam: { wiki_grounding: true, reasoning_effort: "medium" } },
});
return { text };
});
```
CLIENT: a chat-style textarea + send button. Render the response in the chosen
Indian script. Add a "switch language" button so the same conversation can be
re-asked in another language.
LANGUAGE PICKER — required (Sarvam apps are Indian-language native):
Add a `<Select>` with these BCP-47 codes, labelled in their own script:
hi-IN हिन्दी · bn-IN বাংলা · ta-IN தமிழ் · te-IN తెలుగు · kn-IN ಕನ್ನಡ ·
ml-IN മലയാളം · mr-IN मराठी · gu-IN ગુજરાતી · pa-IN ਪੰਜਾਬੀ · od-IN ଓଡ଼ିଆ · en-IN English
Default to `hi-IN` so the demo opens in an Indian language without a click.
Pass the selected code into every Sarvam call (`target_language_code` for TTS
and Translate, `language_code` for STT, system-prompt instruction for chat).
USER FLOW (the entire app — nothing else exists)
1. Land on the page; the headline (in Hindi by default, switchable) previews
what the demo does for traditional rhythm cues in Dance & Choreography.
2. The primary action (a conversational surface that thinks and replies in the user's Indian language with culturally fluent reasoning) is one tap away; the rest of the layout supports it.
3. Sarvam-105B does the thinking, the chosen Sarvam primitive does the
speaking / transcribing / translating, and the result stays on screen in
the chosen Indian language so the user can retry, switch language, or share.
KEY — one secret, already provided to participants:
`SARVAM_API_KEY` from https://dashboard.sarvam.ai. Read it ONLY on the server
via `process.env.SARVAM_API_KEY`. Never prefix with `VITE_` and never expose
to the client. Sarvam's auth header is `api-subscription-key: <key>` (NOT
`Authorization: Bearer`) — both the proprietary endpoints (TTS/STT/Translate)
and the OpenAI-compatible chat endpoint accept that header.
CREDIT (must appear in UI footer AND as JSDoc on the server function):
Built during the Creative AI & Quantum Hackathon organised by StreetKode Fam during Indian Krump Festival 14
Market sizing.
Indicative figures for hackathon pitches — refine with your own research before raising.