Sangeetha-Grantha

Metadata Value
Status Archived
Version 1.0.0
Last Updated 2026-09-10
Author Sangeetha Grantha Team
Document Type Archive

Krithi Data Sourcing Strategy and Implementation Checklist


[!NOTE] Historical evidence: results, counts, commands, and observations below belong to the original work described here. The editorial update date is not a new test or corpus verification. For present behavior, use current ingestion guide.

[!WARNING] This document has been archived. It is superseded by:


1. Objective

Design and implement a long-term sourcing strategy that ingests Krithis and related metadata from high-integrity sources (HTML, PDF, and other document formats), while preserving musicological correctness, provenance, and editorial quality.


2. Context and Drivers


3. Current Baseline (As-Is)

Strengths

Gaps


4. Strategic Principles

  1. Authority first: prefer curated, composer-specific authoritative sources.
  2. Structure before enrichment: lock canonical section structure first, enrich metadata later.
  3. Provenance by default: every asserted field should be traceable to source artifact and extractor run.
  4. Confidence-gated progression: do not auto-approve low-confidence structural imports.
  5. Reproducible pipeline: version all extraction and normalization logic for replayability.
  6. Fix-forward operations: remediation is auditable, reversible, and measurable.

5. Target Architecture (To-Be)

5.1 Multi-Layer Pipeline

  1. Acquisition Layer
    • Accepts URL, PDF URL, local document upload, and mixed manifests.
    • Produces source artifacts with checksum and MIME metadata.
  2. Format Extraction Layer
    • HTML extractor.
    • PDF text extractor.
    • OCR extractor for scanned PDFs/images.
    • Optional DOC/DOCX/RTF extractor.
  3. Structure Canonicalization Layer
    • Runs structural voting across multiple extractions/sources.
    • Produces canonical section template and confidence.
  4. Enrichment Layer
    • Adds language variants, deity, temple, notes, and secondary metadata.
  5. Governance Layer
    • Applies quality gates, dedup checks, review routing, and audit tracking.

5.2 Source Authority Policy

Initial authority map (field-sensitive, composer-sensitive):

Note: authority should be resolved by field type (structure vs metadata vs meaning), not a single global source rank.


6. Data and Schema Evolution Plan

6.1 Short-Term (No breaking changes)

Use parsed_payload and task evidence_path to store:

Add dedicated tables:

6.3 Compatibility Goals


7. Multi-Phase Ingestion Strategy

Phase A: Structural Grounding

Phase B: Core Metadata Consolidation

Phase C: Variant and Language Enrichment

Phase D: Contextual Enrichment

Phase E: Continuous Remediation


8. Quality Model and Review Gates

8.1 Scoring Dimensions

  1. Structural confidence
  2. Source authority score
  3. Extraction confidence (including OCR confidence for scans)
  4. Entity resolution confidence
  5. Deduplication confidence
  6. Validation and consistency score

8.2 Gate Policy

8.3 Review UX Requirements


9. TRACK Alignment

TRACK-039 (Audit)

TRACK-041 (Enhanced Sourcing Logic)

TRACK-040 (Remediation and Dedup)


10. Risks and Mitigations

  1. Scanned PDF quality variance
    • Mitigation: OCR confidence thresholds + mandatory manual review below threshold.
  2. Source structure drift
    • Mitigation: versioned extractor profiles, source-specific handlers, regression fixtures.
  3. False-positive dedup merges
    • Mitigation: conservative merge policy + human sign-off for medium confidence.
  4. Model-driven extraction instability
    • Mitigation: deterministic parser precedence where available + schema-constrained JSON output.
  5. Operational load increase
    • Mitigation: staged rollout, capped concurrency, queue-level observability.

11. 90-Day Delivery Roadmap

Sprint Window 1 (Days 1-20)

Sprint Window 2 (Days 21-45)

Sprint Window 3 (Days 46-70)

Sprint Window 4 (Days 71-90)


12. Detailed Implementation Checklist

Use this as the execution checklist for engineering, data, and editorial teams.

12.1 Discovery and Design

12.2 Schema and Contracts

12.3 Acquisition and Manifest Handling

12.4 Extraction Layer

12.5 Structure Canonicalization and Voting

12.6 Entity Resolution and Dedup

12.7 Enrichment Pipeline

12.8 Review and Admin UX

12.9 Quality Scoring and Auto-Approval

12.10 Observability and Operations

12.11 Testing and Validation

12.12 Remediation Execution

12.13 Governance and Change Control


13. Success Criteria


14. Immediate Next Actions (Execution Starter)

  1. Freeze and approve authority matrix and confidence rubric.
  2. Implement PDF extraction MVP and common candidate schema.
  3. Implement structural voting MVP and review UI evidence panel.
  4. Run Dikshitar pilot batch with end-to-end quality measurement.
  5. Finalize production rollout and runbook updates based on pilot outcomes.

Section index · Documentation home · Feature status