File size: 3,427 Bytes
da4253c
 
 
 
 
 
ed5aa3d
 
 
da4253c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ed5aa3d
da4253c
 
ed5aa3d
 
 
 
 
 
 
 
 
 
 
 
da4253c
 
0bdc135
 
 
da4253c
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
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct

mukunda_mala_config = {
    "name": "mukunda_mala",
    "title": "Mukunda Mala",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.SRI_SOOKTHI,
    "output_dir": "./outputs/mukunda_mala",
    "collection_name": "mukunda_mala",
    "collection_embedding_fn": "openai",
    "unit": "slokam",
    "unit_field": "_global_index",
    "field_mapping": {
        "text": "lyrics_sa",
        "chapter_name": "chapter_name",
        "unit_index": "_global_index",
        "relative_path": lambda doc: f"{doc.get('chapter_name')}{doc.get('slokam_index')}",
        "author": lambda doc: "Shri Kulashekhara Azhwar",
    },
    "metadata_fields": [
        {
            "name": "chapter_name",
            "datatype": "str",
            "label": "Chapter Name",
            "description": "Chapter title",
            "show_as_filter": True,
            "component": "dropdown",
            "lov": lambda: ["DYANA SLOKA", "SLOKAM"],
        },
        {
            "name": "_global_index",
            "datatype": "int",
            "label": "Global Index",
            "description": "Absolute verse index",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "chapter_index",
            "datatype": "int",
            "label": "Chapter Index",
            "description": "Chapter index",
        },
        {
            "name": "slokam_index",
            "datatype": "int",
            "label": "Verse Number (in chapter)",
            "description": "Sequential verse index inside the chapter",
            "show_as_filter": True,
        },
        {
            "name": "lyrics_sa",
            "datatype": "str",
            "label": "Sanskrit Verse",
            "description": "Original verse text in Sanskrit",
            "show_as_filter": True,
        },
    ],
    "pdf_path": "./data/mukunda_mala.pdf",
    "source": "sanskritdocuments.org",
    "language": "san",
    "example_labels": [],
    "examples": [],
    "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": "sanskritdocuments.org",
                "url": "https://sanskritdocuments.org/doc_vishhnu/mukundamAlA.html",
                "role": "Data Provider",
            }
        ],
        "audio": [
            {
                "name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
                "url": "https://www.youtube.com/@akivasudev",
                "role": "Recitation audio contributor",
                "context": [],
                "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
            },
        ],
        "video": [],
    },
    "audio_modes": {
        "recitation": "Recitation",
    },
}