File size: 3,781 Bytes
d3787d1
7be9035
3c0fb3e
 
 
 
bed1e4f
3c0fb3e
 
 
7be9035
 
 
bed1e4f
3c0fb3e
 
 
 
 
 
 
 
 
 
cc0b1f9
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec48ce1
 
 
 
 
 
 
3c0fb3e
 
 
 
 
 
 
 
 
 
 
bed1e4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
from modules.scripture_helpers.pancha_sooktham_helper import (
    get_chapter_order_from_pancha_sooktham,
    get_pancha_sooktham_chapters,
)

pancha_sooktham_config = {
    "name": "pancha_sooktham",
    "title": "Pancha Sooktham",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1EPxyciI9WaVRH6oIrW7D-w4PkYs3SQmy/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.VEDAM,
    "output_dir": "./output/pancha_sooktham",
    "collection_name": "pancha_sooktham",
    "collection_embedding_fn": "openai",
    "unit": "verse",
    "unit_field": "relative_verse_number",
    "chapter_order": lambda: get_chapter_order_from_pancha_sooktham(),
    "field_mapping": {
        "text": "sanskrit",
        "unit_index": "relative_verse_number",
        "transliteration": lambda doc: f"English: \n{doc.get('english')}\n\nதமிழ்: \n{doc.get('tamil')}\n\nతెలుగు: \n{doc.get('telugu')}\n\nಕನ್ನಡ: \n{doc.get('kannada')}",
        # "chapter_name": "chapter_title",
        "relative_path": lambda doc: f"{doc.get('chapter_title',"")}-{doc.get('relative_verse_number',"")}",
    },
    "metadata_fields": [
        {
            "name": "chapter_title",
            "datatype": "str",
            "label": "Chapter Name",
            "description": "Name of the Chapter",
            "show_as_filter": True,
            "component": "dropdown",
            "lov": lambda: get_pancha_sooktham_chapters(),
            "is_unique": True,
        },
        {
            "name": "relative_verse_number",
            "label": "Relative Verse Number",
            "datatype": "int",
            "description": "The relative verse number of the sloka inside the chapter.",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "sanskrit",
            "label": "Lyrics in sanskrit",
            "datatype": "str",
            "description": "The original sloka in sanskrit.",
            "show_as_filter": True,
        },
    ],
    "pdf_path": "./data/pancha_sooktham.pdf",
    "source": "https://stotranidhi.com/",
    "language": "san+eng",
    "example_labels": [
        "Purusha Sooktham",
    ],
    "examples": [
        "Show some verses from purusha sooktham",
    ],
    "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": "Stotranidhi",
                "url": "https://stotranidhi.com/",
                "role": "Data provider",
            }
        ],
        "audio": [
            {
                "name": "Srirangam Sri Vasudevan Srinivasachariar",
                "url": "https://www.youtube.com/@akivasudev",
                "role": "Recitation audio provider",
                "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
            },
            {
                "name": "Sri Vijayaghavan Chakravarthy",
                "url": "https://www.youtube.com/@onedayonepasuram6126",
                "role": "Recitation audio provider",
                "photo_url": "https://drive.google.com/uc?export=download&id=1Iu6fCN76eaax5RLcoWR6UMAs9Xn6Y6Ap",
            },
        ],
        "video": [],
    },
}