File size: 3,225 Bytes
d3787d1
7be9035
d3787d1
 
3c0fb3e
 
9f2b8c9
7be9035
 
 
bed1e4f
3c0fb3e
 
 
 
 
 
 
 
 
 
 
cc0b1f9
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bed1e4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258ca71
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
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct


chathusloki_config = {
    "name": "chathusloki",
    "title": "Chathusloki",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1QXyNyhw7-y25T9z9wY0Vm0KxOLfxBM71/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.STOTRAM,
    "output_dir": "./output/chathusloki",
    "collection_name": "chathusloki",
    "unit": "verse",
    "unit_field": "sloka_number",
    "field_mapping": {
        "text": "sloka_devanagari",
        "title": lambda doc: f"Verse {doc.get('verse','')}",
        "unit_index": "sloka_number",
        "transliteration": "sloka_english_transliteration",
        "word_by_word_native": "meaning",
        "author": lambda doc: f"Sri Aalavandhaar",
        "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": "meaning_short",
            "label": "Short meaning",
            "datatype": "str",
            "description": "A short meaning of the sanskrit verse in English.",
            "show_as_filter": True,
        },
    ],
    "pdf_path": "./data/chathusloki.pdf",
    "source": "https://www.sadagopan.org/ebook/pdf/Chatusloki%20-%20VS.pdf",
    "language": "san+eng",
    "example_labels": ["Recite a sloka", "Commentary", "Role of Sridevi"],
    "examples": [
        "Recite the 1st sloka from Chathusloki",
        "Show detailed commentary for sloka 2 from Chathusloki",
        "What is the role of Sri Devi in the universe according to the Chathusloki?",
    ],
    "llm_hints": [],
    "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/Chatusloki%20-%20VS.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": 4}],
                "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
            },
        ],
        "video": [],
    },
    "audio_modes": {"recitation": "Recitation", "virutham": "Virutham"},
}