Sangeetha-Grantha

Metadata Value
Status Active
Version 1.0.0
Last Updated 2026-09-10
Author Sangeetha Grantha Team
Document Type Evidence record

Import Pipeline Analysis & Remediation Report


[!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 feature map.


Metadata Value
Status Active
Version 1.0.0
Last Updated 2026-02-11
Author Sangita Grantha Architect

1. Executive Summary

This report documents the end-to-end investigation and remediation of the Krithi import pipeline. The system was failing to correctly deduplicate compositions from disparate sources (PDF vs. Blogspot), resulting in data “spam” and process loops. Through a series of code patches and data fixes, we have hardened the “System of Record” to handle transliteration variances and typos.

2. Issues Identified & Resolved

2.1. Process Loops in Entity Resolution

2.2. Incorrect Title Extraction

2.3. Deduplication Failures (Fuzzy Matching)

2.4. Composer Duplication

3. Integration Test Results

A custom integration test script (tools/test_integration_pipeline.sh) was executed to simulate the real-world environment (Docker + Python Worker + Kotlin Backend).

4. Current Database State

5. Technical Patches Applied

  1. KrithiStructureParser.kt: Added title cleaning and improved regex.
  2. ExtractionResultProcessor.kt: Implemented Levenshtein fuzzy logic and metadata-aware thresholds.
  3. ImportRepository.kt: Fixed singleton source lookup.
  4. NameNormalizationService.kt: Hardened composer and vowel normalization.
  5. KrithiRepository.kt: Added compressed title search.
  6. 30__fix_entity_resolution_cache_schema.sql: Fixed missing updated_at column.

Report generated by Sangita Grantha Architect.


Section index · Documentation home · Feature status