| Metadata | Value |
|---|---|
| Status | Active |
| Version | 2.3.2 |
| Last Updated | 2026-11-27 |
| Author | Sangeetha Grantha Team |
A living catalogue of Carnatic compositions, with the sources behind the music.
Sangeetha Grantha brings composition metadata, multilingual lyrics, musical structure, and source evidence into one editorially managed catalogue. It helps listeners find a composition, students read a particular rendition of its text, and curators establish what the catalogue can responsibly publish.
The project has two working applications: Rasika, a shared Kotlin app for Android and iOS, and the Curator Console, a React application for catalogue editing and ingestion. They share a Kotlin API and PostgreSQL database.
Set up locally · Browse the documentation · See feature status
Rasika currently reads /v2/catalogue. It includes published compositions whose musical form is not yet established, without displaying a guessed form badge. Broader metadata directories (tala, deity, language, form), recents, and later editorial Home features remain planned. See the Rasika experience and release evidence.
Sangeetha Grantha integrates dense vector search (pgvector with 768-D Gemini Embedding 2 vectors) and full-text search across three complementary retrieval modes:
1 / (60 + rank)) combining lexical and vector candidates to eliminate zero-result dropouts and surface nuanced matches.Through Track 145 (Dikshitar Kshetra & Musicological Metadata Enrichment), the catalogue incorporates fine-grained musicological, geometric, and geographical intelligence that directly unlocks high-precision discovery for listeners, students, and scholars:
| What you want to find | Sample query phrase | Retrieved composition / document |
|---|---|---|
| Kamalamba 6th enclosure | "Kamalamba sixth enclosure sarvarakshakara nigarbha yogini shashthi" |
Kamalambikayastava (Punnagavarali; Case: Shashthi; Chakra: Sarvarakshakara) |
| Elemental fire lingam | "Dikshitar Agni lingam fire element at Tiruvannamalai" |
Arunachalanatham (Saranga; Bhuta: Agni; Nadu mandalam) |
| Saturn / Shani patronymic | "Dikshitar Navagraha krithi for Shani Saturn son of the Sun" |
Divakaratanujam (Yadukulakambhoji; Deva: Shani; Deity: Shani) |
| Temple door opening lore | "Dikshitar temple door opening at Keevalur in Shankarabharanam" |
Akshayalinga Vibho (Shankarabharanam; Occasion: Keevalur temple door) |
| Nottusvara European air | "Dikshitar Nottusvara composed to the tune of God Save the King" |
Santatam Pahi Mam (Sankarabharanam; Tune: God Save the King) |
| Pilgrimage gap shrine | "Muthuswami Dikshitar pilgrimage to Kanyakumari Bhagavati Amman gap temple" |
Kanyakumari Kshetra Overview (Recorded Pilgrimage Gap; Pandya mandalam) |
| Subrahmanya at Kazhugumalai | "Muthuswami Dikshitar Subrahmanya kriti at Kazhugumalai shrine" |
Subrahmanyena Rakshitoham (Suddhadhanyasi; Kazhugumalai) |
| Tiruchendur Murugan | "Dikshitar kriti praising Lord Subrahmanya at sea-shore Tiruchendur" |
Sri Subrahmanyo Mam Rakshatu (Todi; Tiruchendur; Senthil Andavar) |
Classification of the Syama Sastri and Tyagaraja corpora (TRACK-146 to TRACK-149) follows the same evidence-first approach: approved claims are applied through reviewed seeds, and Tyagaraja records that collide on raga and tala are split into distinct compositions through the audited import pipeline. Edition-consultation adjudication for both composers is still in progress.
The Curator Console supports composition editing, section and lyric variants, notation, reference data, import review, and an audit history. Mobile Preview replicates Rasika read-only inside the console, showing how an edit will look and what a search will return, with a warning when the search index is behind the edit (guide). Its sourcing workspace brings source registration, extraction monitoring, evidence, structural verification, and quality summaries together.
Search offers three modes: lexical matching for familiar titles and phrases, semantic retrieval for meaning, and hybrid retrieval combining both. Semantic and hybrid search use a separately populated embedding index; a fresh database does not contain indexed compositions.
The ingestion pipeline accepts source manifests and extraction requests, processes supported HTML/PDF sources in Python, and passes canonical extraction payloads to Kotlin for matching and persistence. Ambiguous raga identities go to curator resolution. Accepted changes can retain section-level provenance through the versioned canon.
Start with the curator guide, ingestion guide, or search guide.
flowchart LR
R[Rasika Android / iOS] --> C[Public catalogue V2]
A[Curator Console] --> E[Editorial and sourcing API]
A --> S[Lexical / hybrid / semantic search]
C --> D[(PostgreSQL + pgvector)]
E --> D
S --> D
E --> Q[Extraction queue]
Q --> W[Python extraction worker]
W --> P[Canonical extraction payload]
P --> K[Kotlin matching and persistence]
K --> D
B[Embedding indexing scripts] --> D
Rasika reads published data only; V2 adds discovery, collections, kshetras, facets and search cards, none of which exist on V1. Public catalogue DTOs expose a deliberate subset of editorial data. The catalogue V1 contract excludes UNESTABLISHED; V2 supports it. Successful catalogue reads use Cache-Control: no-store. Admin mutations require authorization and audit logging. Flyway owns schema evolution; source corrections belong in extraction, reingestion, and curation workflows.
| Area | Location | Responsibility |
|---|---|---|
| Shared domain | modules/shared/domain | Serializable API contracts and domain types |
| Rasika | presentation, mobile-data, native hosts | Shared UI, V2 client, local storage, Android/iOS integration |
| Backend | modules/backend | Ktor services, Exposed repositories, test infrastructure |
| Curator Console | sangita-admin-web | React, TypeScript, Vite, Tailwind, TanStack Query |
| Database | database/migrations | Versioned schema and repeatable reference seeds |
| Extraction | worker | Parsing, enrichment, extraction queue, embedding tools |
| Delivery | Makefile, Compose, CI | Local services, builds, and verification |
Pinned and resolved dependencies are listed in Current Versions.
Install mise and Docker, then follow the setup guide to prepare the local environment files before starting:
mise trust
mise install
make dev
make dev builds and runs the database, Flyway migration service, backend, admin web, and extraction worker in the foreground. Open the Curator Console; the API is at localhost:8080. Rasika hosts are built separately.
A new database contains schema and reference data. Import or load development sample compositions before expecting catalogue results. Admin provisioning and console token login are separate steps; see authentication.
| Task | Command |
|---|---|
| Stop the development stack | make dev-down |
| Start only PostgreSQL | make db |
| Apply pending schema and reference migrations | make migrate |
| Inspect migration history | make migrate-status |
| Add optional development sample content | make seed-dev |
| Provision the admin account | make bootstrap-admin |
| Backend tests, including database-backed tests | make test |
| Backend integration tests | make test-integration |
| Admin web unit tests | make test-frontend |
| Shared mobile JVM tests | make test-mobile |
| Android debug build / iOS simulator build | make mobile-android / make mobile-ios |
| Check documentation links | make check-docs |
| Find code changes whose docs did not move | make check-doc-impact |
make db-reset deletes and recreates the local database. make clean removes Compose volumes. Neither is required for routine startup or documentation work.
Implemented capabilities include the public catalogue, Rasika browsing, reading, collections, kshetras and facets, Mobile Preview, the curator and sourcing workflows, hybrid/semantic search, raga aliases and controlled resolution, versioned canon, and Flyway/Testcontainers infrastructure. “Implemented” describes repository behavior; it does not certify production deployment or native-device acceptance.
Open work includes Rasika’s native release gate and later discovery releases, completing the Syama Sastri and Tyagaraja edition adjudication (TRACK-148, TRACK-149), payload convergence, the remaining corpus-reingestion closure, interactive OAuth/OTP authentication, and production rollout. The feature map explains the boundaries; Conductor records execution status.
| You want to… | Start here |
|---|---|
| Understand the product and musicological rules | Product requirements, domain model |
| Explore search and embeddings | Search guide, embeddings guide, Track 145 implementation |
| Integrate a client | API contract, request examples |
| Understand storage and provenance | Schema, versioned canon |
| Make a change | Onboarding, architecture, testing |
| Operate or diagnose the stack | Operations |
| Work with an AI coding assistant | Repository rules, agent workflow guide |
The catalogue draws on Carnatic scholarship and sources including karnatik.com, shivkumar.org, and composer-focused archives. Source attribution, distinct textual variants, and careful editorial review are central to preserving that knowledge.
For document construction, indexing commands, profile activation, and coverage checks, read Embedding pipeline and index operations. For detailed musicological schema and retrieval benchmarks, see TRACK-145 Dikshitar Kshetra & Musicological Metadata.