File size: 4,290 Bytes
d3787d1
7be9035
d3787d1
 
3c0fb3e
 
9f2b8c9
7be9035
 
 
bed1e4f
3c0fb3e
 
 
 
 
 
b1790fa
3c0fb3e
bed1e4f
3c0fb3e
 
bed1e4f
 
 
 
cc0b1f9
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec48ce1
3c0fb3e
 
 
 
 
 
ec48ce1
 
 
 
 
 
 
 
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
bed1e4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258ca71
bed1e4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ad8f62
bed1e4f
 
 
0bdc135
3c0fb3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct


sri_stavam_config = {
    "name": "sri_stavam",
    "title": "Sri Stavam",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1kWJBekDBijMqXFXLkgjMp3hS19gH5PFT/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.STOTRAM,
    "output_dir": "./output/sri_stavam",
    "collection_name": "sri_stavam",
    "unit": "slokam",
    "unit_field": "sloka_number",
    "field_mapping": {
        "text": "sanskrit",
        "title": lambda doc: f"Verse {doc.get('sloka_number','')}",
        "unit_index": "sloka_number",
        "chapter_name": "chapter",
        "transliteration": "transliteration",
        "word_by_word_native": "meaning_short",
        "translation": "commentary",
        "author": lambda doc: (
            "Sri Koorathazhwan" if 1 <= doc.get("sloka_number", 0) <= 11 else "-"
        ),
        "relative_path": lambda doc: f"॥ श्री:स्तव: ॥ {doc.get("sloka_number",'')}",
    },
    "metadata_fields": [
        {
            "name": "sloka_number",
            "label": "Slokam Number",
            "datatype": "int",
            "description": "The index of the sloka or verse",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "sanskrit",
            "label": "Lyrics in sanskrit",
            "datatype": "str",
            "description": "Verse in sanskrit",
            "show_as_filter": True,
        },
        {
            "name": "transliteration",
            "label": "English Transliteration",
            "datatype": "str",
            "description": "Verse transliterated to English",
            "show_as_filter": True,
        },
        {
            "name": "meaning_short",
            "label": "Short meaning",
            "datatype": "str",
            "description": "A short meaning of the sanskrit verse in English.",
            "show_as_filter": True,
        },
    ],
    "pdf_path": "./data/sri_stavam.pdf",
    "source": "https://www.sadagopan.org/ebook/pdf/Sri%20Stavam.pdf",
    "language": "san+eng",
    "example_labels": ["Recite a sloka", "Commentary", "Role of Sridevi"],
    "examples": [
        "Recite the 1st sloka from Sri Stavam",
        "Show detailed commentary for sloka 2 from Sri Stavam",
        "What is the role of Sri Devi in the universe according to the Sri Stavam?",
    ],
    "llm_hints": [
        "if the user asks for nth sloka, do a metadata search on the `verse` field."
    ],
    "credits": {
        "art": [
            {
                "name": "Sri TNCN",
                "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
                "role": "Illustrator",
                "notes": "Original artwork used with permission",
                "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
            }
        ],
        "data": [
            {
                "name": "Sadagopan.org",
                "url": "https://www.sadagopan.org/ebook/pdf/Sri%20Stavam.pdf",
                "role": "Data provider",
                "photo_url": "https://www.sadagopan.org/assets/front/images/img1.png",
            }
        ],
        "audio": [
            {
                "name": "Srirangam Sri Vasudevan Srinivasachariar",
                "url": "https://www.youtube.com/@akivasudev",
                "role": "Recitation audio provider",
                "context": [{"start": 1, "end": 10}],
                "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
            },
        ],
        "video": [
            {
                "name": "Sri Agaram Seshadri Vijayaraghavan",
                "url": "https://www.youtube.com/@jagadacharya2405",
                "role": "Upanyasam video provider",
                "context": [{"start": 1, "end": 10, "description": "Sri Stavam"}],
                "photo_url": "https://drive.google.com/uc?export=download&id=1sM9-BiYRbjABJeihk5q6E2Lc5gc0_72V",
            },
        ],
    },
    "audio_modes": {"recitation": "Recitation", "viruthan": "Virutham"},
}