File size: 5,013 Bytes
d3787d1
7be9035
d3787d1
 
3c0fb3e
 
 
7be9035
 
 
bed1e4f
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc0b1f9
3c0fb3e
cc0b1f9
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e002f2
 
 
 
 
 
 
 
3c0fb3e
 
 
 
 
ec48ce1
3c0fb3e
 
 
 
 
 
ec48ce1
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
bed1e4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63b395d
 
 
 
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct


taitriya_samhitha_config = {
    "name": "taitriya_samhitha",
    "title": "Taitriya Samhitha",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1xxjMzPfqm9Vx95tdmGfSFkzJtqKLuxal/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.VEDAM,
    "output_dir": "./output/taitriya_samhitha",
    "collection_name": "taitriya_samhitha",
    "collection_embedding_fn": "openai",
    "unit": "panchadhi",
    "unit_field": "panchadhi",
    # "chapter_order": lambda: get_chapter_order_from_taitriya_samhitha(),
    "field_mapping": {
        "text": "sanskrit",
        "unit_index": "panchadhi",
        "transliteration": "transliteration",
        "chapter_name": lambda doc: (
            doc.get("prashnam_name")
            if doc.get("prashnam_name") and doc.get("prashnam_name") != "-"
            else (
                doc.get("kandam_name")
                if doc.get("kandam_name") and doc.get("kandam_name") != "-"
                else "-"
            )
        ),
        "relative_path": lambda doc: (
            "॥ तैत्तिरीय-संहिता ॥"
            if not doc.get("panchadhi") or doc.get("panchadhi") == "-"
            else f"॥ तैत्तिरीय-संहिता ॥ {doc.get('kandam')}.{doc.get('prashnam')}.{doc.get('anuvakam')}.{doc.get('panchadhi_index')} || {doc.get('panchadhi_sa')} ||"
        ),
    },
    "metadata_fields": [
        {
            "name": "kandam",
            "datatype": "int",
            "label": "Kandam Number",
            "description": "Kandam Number",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "prashnam",
            "datatype": "int",
            "label": "Prashnam Number",
            "description": "Prashnam Number",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "anuvakam",
            "datatype": "int",
            "label": "Anuvakam Number",
            "description": "Anuvakam Number",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "panchadhi_index",
            "datatype": "int",
            "label": "Relative Panchadhi Number",
            "description": "Relative Panchadhi Number",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "panchadhi",
            "datatype": "int",
            "label": "Absolute Panchadhi Number",
            "description": "Absolute Panchadhi Number",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "_global_index",
            "datatype": "int",
            "label": "Global Index",
            "description": "Global Index",
            "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,
        },
        {
            "name": "transliteration",
            "label": "Transliteration in english",
            "datatype": "str",
            "description": "The original sloka transliterated in English.",
            "show_as_filter": True,
        },
    ],
    "pdf_path": "./data/taitriya_samhitha.pdf",
    "source": "https://sanskritdocuments.org/doc_veda/taittirIyasamhitA.html",
    "language": "san+eng",
    "example_labels": [
        "Taitriya Samhitha",
    ],
    "examples": [
        "Show some verses from Taitriya Samhitha",
    ],
    "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_veda/taittirIyasamhitA.html",
                "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",
            },
        ],
        "video": [],
    },
    "audio_modes": {
        "recitation": "Recitation",
        "recitation kramam": "Recitation Kramam",
    },
}