vikramvasudevan commited on
Commit
bed1e4f
·
verified ·
1 Parent(s): 6193938

Upload folder using huggingface_hub

Browse files
modules/config/bhagavat_gita.py CHANGED
@@ -7,7 +7,7 @@ from modules.scripture_helpers.bhagavat_gita_helper import (
7
  bhagavat_gita_config = {
8
  "name": "bhagavat_gita",
9
  "title": "Bhagavat Gita",
10
- "category" : ScriptureCategoryConstants.VEDANTA,
11
  "output_dir": "./output/bhagavat_gita",
12
  "collection_name": "bhagavat_gita_openai",
13
  "collection_embedding_fn": "openai",
@@ -65,7 +65,7 @@ bhagavat_gita_config = {
65
  },
66
  ],
67
  "pdf_path": "./data/bhagavat_gita.pdf",
68
- "source": "https://vivekavani.com/",
69
  "language": "san+eng",
70
  "example_labels": [
71
  "About Arjuna",
@@ -84,4 +84,31 @@ bhagavat_gita_config = {
84
  "What teachings did Krishna share in the Gita?",
85
  ],
86
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
 
7
  bhagavat_gita_config = {
8
  "name": "bhagavat_gita",
9
  "title": "Bhagavat Gita",
10
+ "category": ScriptureCategoryConstants.VEDANTA,
11
  "output_dir": "./output/bhagavat_gita",
12
  "collection_name": "bhagavat_gita_openai",
13
  "collection_embedding_fn": "openai",
 
65
  },
66
  ],
67
  "pdf_path": "./data/bhagavat_gita.pdf",
68
+ "source": "https://cdn.vivekavani.com/bg/",
69
  "language": "san+eng",
70
  "example_labels": [
71
  "About Arjuna",
 
84
  "What teachings did Krishna share in the Gita?",
85
  ],
86
  "llm_hints": [],
87
+ "credits": {
88
+ "art": [
89
+ {
90
+ "name": "Sri TNCN",
91
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
92
+ "role": "Illustrator",
93
+ "notes": "Original artwork used with permission",
94
+ }
95
+ ],
96
+ "data": [
97
+ {
98
+ "name": "Vivekavani",
99
+ "url": "https://cdn.vivekavani.com/bg/",
100
+ "role": "Data provider",
101
+ "license": "CC BY-SA 4.0",
102
+ }
103
+ ],
104
+ "audio": [
105
+ {
106
+ "name": "Vivekavani",
107
+ "url": "https://vivekavani.com/",
108
+ "role": "Recitation audio provider",
109
+ "context": [{"start": 1, "end": 699}],
110
+ },
111
+ ],
112
+ "video": [],
113
+ },
114
  }
modules/config/brahma_sutra.py CHANGED
@@ -299,4 +299,31 @@ brahma_sutra_config = {
299
  "Show some sutras from Brahma Sutra",
300
  ],
301
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  }
 
299
  "Show some sutras from Brahma Sutra",
300
  ],
301
  "llm_hints": [],
302
+ "credits": {
303
+ "art": [
304
+ {
305
+ "name": "Sri TNCN",
306
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
307
+ "role": "Illustrator",
308
+ "notes": "Original artwork used with permission",
309
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
310
+ }
311
+ ],
312
+ "data": [
313
+ {
314
+ "name": "swami-krishnananda.org",
315
+ "url": "https://www.swami-krishnananda.org/bs_1/bs_1.html",
316
+ "role": "Data provider",
317
+ }
318
+ ],
319
+ "audio": [
320
+ {
321
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
322
+ "url": "https://www.youtube.com/@akivasudev",
323
+ "role": "Recitation audio provider",
324
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
325
+ },
326
+ ],
327
+ "video": [],
328
+ },
329
  }
modules/config/chathusloki.py CHANGED
@@ -4,7 +4,7 @@ from modules.config.categories import ScriptureCategoryConstants
4
  chathusloki_config = {
5
  "name": "chathusloki",
6
  "title": "Chathusloki",
7
- "category" : ScriptureCategoryConstants.STOTRAM,
8
  "output_dir": "./output/chathusloki",
9
  "collection_name": "chathusloki",
10
  "unit": "verse",
@@ -45,4 +45,32 @@ chathusloki_config = {
45
  "What is the role of Sri Devi in the universe according to the Chathusloki?",
46
  ],
47
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
 
4
  chathusloki_config = {
5
  "name": "chathusloki",
6
  "title": "Chathusloki",
7
+ "category": ScriptureCategoryConstants.STOTRAM,
8
  "output_dir": "./output/chathusloki",
9
  "collection_name": "chathusloki",
10
  "unit": "verse",
 
45
  "What is the role of Sri Devi in the universe according to the Chathusloki?",
46
  ],
47
  "llm_hints": [],
48
+ "credits": {
49
+ "art": [
50
+ {
51
+ "name": "Sri TNCN",
52
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
53
+ "role": "Illustrator",
54
+ "notes": "Original artwork used with permission",
55
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
56
+ }
57
+ ],
58
+ "data": [
59
+ {
60
+ "name": "Sadagopan.org",
61
+ "url": "https://www.sadagopan.org/ebook/pdf/Chatusloki%20-%20VS.pdf",
62
+ "role": "Data provider",
63
+ }
64
+ ],
65
+ "audio": [
66
+ {
67
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
68
+ "url": "https://www.youtube.com/@akivasudev",
69
+ "role": "Recitation audio provider",
70
+ "context": [{"start": 1, "end": 4}],
71
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
72
+ },
73
+ ],
74
+ "video": [],
75
+ },
76
  }
modules/config/divya_prabandham.py CHANGED
@@ -4,13 +4,12 @@ import nalayiram_helper
4
  divya_prabandham_config = {
5
  "name": "divya_prabandham",
6
  "title": "4000 Divya Prabandham",
7
- "category" : ScriptureCategoryConstants.LITERATURE,
8
  "output_dir": "./output/divya_prabandham",
9
  "collection_name": "divya_prabandham",
10
  "collection_embedding_fn": "openai",
11
  "unit": "pasuram",
12
  "unit_field": "verse",
13
- "credits": "We owe deep gratitude to uveda.org for providing such beautifully curated data. 🙏 This section would not have been possible without the dedicated efforts of the Uveda team.",
14
  "field_mapping": {
15
  "text": "pasuram_ta",
16
  "title": lambda doc: f"{doc.get('prabandham_name','')} {doc.get('chapter','')}-{doc.get('decade','')}:{doc.get('position_in_chapter','')}",
@@ -178,4 +177,73 @@ divya_prabandham_config = {
178
  "llm_hints": [
179
  "If the user wishes to query at a decade or chapter level for a given prabandham, use the direct metadata query on the appropriate fields once instead of querying the tool multiple times for each pasuram from the chapter."
180
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  }
 
4
  divya_prabandham_config = {
5
  "name": "divya_prabandham",
6
  "title": "4000 Divya Prabandham",
7
+ "category": ScriptureCategoryConstants.LITERATURE,
8
  "output_dir": "./output/divya_prabandham",
9
  "collection_name": "divya_prabandham",
10
  "collection_embedding_fn": "openai",
11
  "unit": "pasuram",
12
  "unit_field": "verse",
 
13
  "field_mapping": {
14
  "text": "pasuram_ta",
15
  "title": lambda doc: f"{doc.get('prabandham_name','')} {doc.get('chapter','')}-{doc.get('decade','')}:{doc.get('position_in_chapter','')}",
 
177
  "llm_hints": [
178
  "If the user wishes to query at a decade or chapter level for a given prabandham, use the direct metadata query on the appropriate fields once instead of querying the tool multiple times for each pasuram from the chapter."
179
  ],
180
+ "credits": {
181
+ "art": [
182
+ {
183
+ "name": "Sri TNCN",
184
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
185
+ "role": "Illustrator",
186
+ "notes": "Original artwork used with permission",
187
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
188
+ }
189
+ ],
190
+ "data": [
191
+ {
192
+ "name": "UVeda",
193
+ "url": "https://uveda.org",
194
+ "role": "Data provider",
195
+ "photo_url": "https://www.uveda.org/_next/image?url=%2Fuveda-logo.png&w=750&q=75",
196
+ }
197
+ ],
198
+ "audio": [
199
+ {
200
+ "name": "Sri TNCN",
201
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
202
+ "role": "Recitation audio provider",
203
+ "context": [
204
+ {"start": 2791, "end": 3791, "description": "Thiruvaimozhi"}
205
+ ],
206
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
207
+ },
208
+ {
209
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
210
+ "url": "https://www.youtube.com/@akivasudev",
211
+ "role": "Recitation audio provider",
212
+ "context": [
213
+ {"start": 3893, "end": 4000, "description": "Iramanusa Nootrandhadhi"}
214
+ ],
215
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
216
+ },
217
+ {
218
+ "name": "Srirangam Vikram Vasudevan",
219
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
220
+ "role": "Virutham audio provider",
221
+ "context": [{"start": 1, "end": 4000}],
222
+ "photo_url": "https://yt3.googleusercontent.com/lA5fiJuRDVGxOLkszb6O5DaiR1N7WcRVDHtJSQjO8IxCK-Y3VfMtYZP2Wm1SP0gUx8vj87jA=s160-c-k-c0x00ffffff-no-rj",
223
+ },
224
+ ],
225
+ "video": [
226
+ {
227
+ "name": "Dr Venkatesh",
228
+ "url": "https://www.youtube.com/@DrVenkateshUpanyasams",
229
+ "role": "Upanyasam video provider",
230
+ "context": [{"start": 474, "end": 503, "description": "Thiruppaavai"}],
231
+ "photo_url": "https://yt3.googleusercontent.com/d0si0mS7oSShUSEfe3mnPx2Wu8HN8ei7A_twQVf8y0aq-tqz_KmrfS5PjicsqnaAzVdFMace=s160-c-k-c0x00ffffff-no-rj",
232
+ },
233
+ {
234
+ "name": "Sri Agaram Seshadri Vijayaraghavan",
235
+ "url": "https://www.youtube.com/@jagadacharya2405",
236
+ "role": "Upanyasam video provider",
237
+ "context": [{"start": 474, "end": 503, "description": "Thiruppaavai"}],
238
+ "photo_url": "https://media.licdn.com/dms/image/v2/D5603AQEUF-JSpuLc0g/profile-displayphoto-crop_800_800/B56ZhAx3eeH0AQ-/0/1753433471696?e=1762992000&v=beta&t=tt715wrcPzRPDbpFJFOjcR89lPb7H66pMmWw6zsUPiI",
239
+ },
240
+ {
241
+ "name": "Srirangam Vikram Vasudevan",
242
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
243
+ "role": "Virutham video provider",
244
+ "context": [{"start": 1, "end": 4000}],
245
+ "photo_url": "https://yt3.googleusercontent.com/lA5fiJuRDVGxOLkszb6O5DaiR1N7WcRVDHtJSQjO8IxCK-Y3VfMtYZP2Wm1SP0gUx8vj87jA=s160-c-k-c0x00ffffff-no-rj",
246
+ },
247
+ ],
248
+ },
249
  }
modules/config/katakam.py CHANGED
@@ -84,4 +84,31 @@ katakam_config = {
84
  "Show some verses from Katakam",
85
  ],
86
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
 
84
  "Show some verses from Katakam",
85
  ],
86
  "llm_hints": [],
87
+ "credits": {
88
+ "art": [
89
+ {
90
+ "name": "Sri TNCN",
91
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
92
+ "role": "Illustrator",
93
+ "notes": "Original artwork used with permission",
94
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
95
+ }
96
+ ],
97
+ "data": [
98
+ {
99
+ "name": "sanskritdocuments.org",
100
+ "url": "https://sanskritdocuments.org/doc_veda/taittirIyabrAhmaNam.html",
101
+ "role": "Data provider",
102
+ }
103
+ ],
104
+ "audio": [
105
+ {
106
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
107
+ "url": "https://www.youtube.com/@akivasudev",
108
+ "role": "Recitation audio provider",
109
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
110
+ },
111
+ ],
112
+ "video": [],
113
+ },
114
  }
modules/config/pancha_sooktham.py CHANGED
@@ -3,10 +3,11 @@ from modules.scripture_helpers.pancha_sooktham_helper import (
3
  get_chapter_order_from_pancha_sooktham,
4
  get_pancha_sooktham_chapters,
5
  )
 
6
  pancha_sooktham_config = {
7
  "name": "pancha_sooktham",
8
  "title": "Pancha Sooktham",
9
- "category" : ScriptureCategoryConstants.VEDAM,
10
  "output_dir": "./output/pancha_sooktham",
11
  "collection_name": "pancha_sooktham",
12
  "collection_embedding_fn": "openai",
@@ -57,4 +58,37 @@ pancha_sooktham_config = {
57
  "Show some verses from purusha sooktham",
58
  ],
59
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
 
3
  get_chapter_order_from_pancha_sooktham,
4
  get_pancha_sooktham_chapters,
5
  )
6
+
7
  pancha_sooktham_config = {
8
  "name": "pancha_sooktham",
9
  "title": "Pancha Sooktham",
10
+ "category": ScriptureCategoryConstants.VEDAM,
11
  "output_dir": "./output/pancha_sooktham",
12
  "collection_name": "pancha_sooktham",
13
  "collection_embedding_fn": "openai",
 
58
  "Show some verses from purusha sooktham",
59
  ],
60
  "llm_hints": [],
61
+ "credits": {
62
+ "art": [
63
+ {
64
+ "name": "Sri TNCN",
65
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
66
+ "role": "Illustrator",
67
+ "notes": "Original artwork used with permission",
68
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
69
+ }
70
+ ],
71
+ "data": [
72
+ {
73
+ "name": "Stotranidhi",
74
+ "url": "https://stotranidhi.com/",
75
+ "role": "Data provider",
76
+ }
77
+ ],
78
+ "audio": [
79
+ {
80
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
81
+ "url": "https://www.youtube.com/@akivasudev",
82
+ "role": "Recitation audio provider",
83
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
84
+ },
85
+ {
86
+ "name": "Sri Vijayaghavan Chakravarthy",
87
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
88
+ "role": "Recitation audio provider",
89
+ "photo_url": "https://drive.google.com/uc?export=download&id=1Iu6fCN76eaax5RLcoWR6UMAs9Xn6Y6Ap",
90
+ },
91
+ ],
92
+ "video": [],
93
+ },
94
  }
modules/config/shanthi_panchakam.py CHANGED
@@ -7,7 +7,7 @@ from modules.scripture_helpers.shanthi_panchakam_helper import (
7
  shanthi_panchakam_config = {
8
  "name": "shanthi_panchakam",
9
  "title": "Shanthi Panchakam",
10
- "category" : ScriptureCategoryConstants.VEDAM,
11
  "output_dir": "./output/shanthi_panchakam",
12
  "collection_name": "shanthi_panchakam",
13
  "collection_embedding_fn": "openai",
@@ -58,4 +58,37 @@ shanthi_panchakam_config = {
58
  "Show some verses from Shanthi Panchakam",
59
  ],
60
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  }
 
7
  shanthi_panchakam_config = {
8
  "name": "shanthi_panchakam",
9
  "title": "Shanthi Panchakam",
10
+ "category": ScriptureCategoryConstants.VEDAM,
11
  "output_dir": "./output/shanthi_panchakam",
12
  "collection_name": "shanthi_panchakam",
13
  "collection_embedding_fn": "openai",
 
58
  "Show some verses from Shanthi Panchakam",
59
  ],
60
  "llm_hints": [],
61
+ "credits": {
62
+ "art": [
63
+ {
64
+ "name": "Sri TNCN",
65
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
66
+ "role": "Illustrator",
67
+ "notes": "Original artwork used with permission",
68
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
69
+ }
70
+ ],
71
+ "data": [
72
+ {
73
+ "name": "Vignanam.org",
74
+ "url": "https://vignanam.org/english/shanti-panchakam.html",
75
+ "role": "Data provider",
76
+ }
77
+ ],
78
+ "audio": [
79
+ {
80
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
81
+ "url": "https://www.youtube.com/@akivasudev",
82
+ "role": "Recitation audio provider",
83
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
84
+ },
85
+ {
86
+ "name": "Sri Vijayaghavan Chakravarthy",
87
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
88
+ "role": "Recitation audio provider",
89
+ "photo_url": "https://drive.google.com/uc?export=download&id=1Iu6fCN76eaax5RLcoWR6UMAs9Xn6Y6Ap",
90
+ },
91
+ ],
92
+ "video": [],
93
+ },
94
  }
modules/config/sri_stavam.py CHANGED
@@ -4,7 +4,7 @@ from modules.config.categories import ScriptureCategoryConstants
4
  sri_stavam_config = {
5
  "name": "sri_stavam",
6
  "title": "Sri Stavam",
7
- "category" : ScriptureCategoryConstants.STOTRAM,
8
  "output_dir": "./output/sri_stavam",
9
  "collection_name": "sri_stavam",
10
  "unit": "slokam",
@@ -13,11 +13,13 @@ sri_stavam_config = {
13
  "text": "sanskrit",
14
  "title": lambda doc: f"Verse {doc.get('sloka_number','')}",
15
  "unit_index": "sloka_number",
16
- "chapter_name" : "chapter",
17
  "transliteration": "transliteration",
18
  "word_by_word_native": "meaning_short",
19
- "translation" : "commentary",
20
- "author": lambda doc: "Sri Koorathazhwan" if 1 <= doc.get("sloka_number", 0) <= 11 else "-",
 
 
21
  "relative_path": lambda doc: f"॥ श्री:स्तव: ॥ {doc.get("sloka_number",'')}",
22
  },
23
  "metadata_fields": [
@@ -63,4 +65,40 @@ sri_stavam_config = {
63
  "llm_hints": [
64
  "if the user asks for nth sloka, do a metadata search on the `verse` field."
65
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
 
4
  sri_stavam_config = {
5
  "name": "sri_stavam",
6
  "title": "Sri Stavam",
7
+ "category": ScriptureCategoryConstants.STOTRAM,
8
  "output_dir": "./output/sri_stavam",
9
  "collection_name": "sri_stavam",
10
  "unit": "slokam",
 
13
  "text": "sanskrit",
14
  "title": lambda doc: f"Verse {doc.get('sloka_number','')}",
15
  "unit_index": "sloka_number",
16
+ "chapter_name": "chapter",
17
  "transliteration": "transliteration",
18
  "word_by_word_native": "meaning_short",
19
+ "translation": "commentary",
20
+ "author": lambda doc: (
21
+ "Sri Koorathazhwan" if 1 <= doc.get("sloka_number", 0) <= 11 else "-"
22
+ ),
23
  "relative_path": lambda doc: f"॥ श्री:स्तव: ॥ {doc.get("sloka_number",'')}",
24
  },
25
  "metadata_fields": [
 
65
  "llm_hints": [
66
  "if the user asks for nth sloka, do a metadata search on the `verse` field."
67
  ],
68
+ "credits": {
69
+ "art": [
70
+ {
71
+ "name": "Sri TNCN",
72
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
73
+ "role": "Illustrator",
74
+ "notes": "Original artwork used with permission",
75
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
76
+ }
77
+ ],
78
+ "data": [
79
+ {
80
+ "name": "Sadagopan.org",
81
+ "url": "https://www.sadagopan.org/ebook/pdf/Sri%20Stavam.pdf",
82
+ "role": "Data provider",
83
+ }
84
+ ],
85
+ "audio": [
86
+ {
87
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
88
+ "url": "https://www.youtube.com/@akivasudev",
89
+ "role": "Recitation audio provider",
90
+ "context": [{"start": 1, "end": 10}],
91
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
92
+ },
93
+ ],
94
+ "video": [
95
+ {
96
+ "name": "Sri Agaram Seshadri Vijayaraghavan",
97
+ "url": "https://www.youtube.com/@jagadacharya2405",
98
+ "role": "Upanyasam video provider",
99
+ "context": [{"start": 1, "end": 10, "description": "Sri Stavam"}],
100
+ "photo_url": "https://media.licdn.com/dms/image/v2/D5603AQEUF-JSpuLc0g/profile-displayphoto-crop_800_800/B56ZhAx3eeH0AQ-/0/1753433471696?e=1762992000&v=beta&t=tt715wrcPzRPDbpFJFOjcR89lPb7H66pMmWw6zsUPiI",
101
+ },
102
+ ],
103
+ },
104
  }
modules/config/taitriya_aranyakam.py CHANGED
@@ -103,4 +103,31 @@ taitriya_aranyakam_config = {
103
  "Show some verses from Taitriya AraNyaka",
104
  ],
105
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  }
 
103
  "Show some verses from Taitriya AraNyaka",
104
  ],
105
  "llm_hints": [],
106
+ "credits": {
107
+ "art": [
108
+ {
109
+ "name": "Sri TNCN",
110
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
111
+ "role": "Illustrator",
112
+ "notes": "Original artwork used with permission",
113
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
114
+ }
115
+ ],
116
+ "data": [
117
+ {
118
+ "name": "sanskritdocuments.org",
119
+ "url": "https://sanskritdocuments.org/doc_veda/taittirIyaAraNyaka.html",
120
+ "role": "Data provider",
121
+ }
122
+ ],
123
+ "audio": [
124
+ {
125
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
126
+ "url": "https://www.youtube.com/@akivasudev",
127
+ "role": "Recitation audio provider",
128
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
129
+ },
130
+ ],
131
+ "video": [],
132
+ },
133
  }
modules/config/taitriya_brahmanam.py CHANGED
@@ -4,7 +4,7 @@ from modules.config.categories import ScriptureCategoryConstants
4
  taitriya_brahmanam_config = {
5
  "name": "taitriya_brahmanam",
6
  "title": "Taitriya Brahmanam",
7
- "category" : ScriptureCategoryConstants.VEDAM,
8
  "output_dir": "./output/taitriya_brahmanam",
9
  "collection_name": "taitriya_brahmanam",
10
  "collection_embedding_fn": "openai",
@@ -96,4 +96,31 @@ taitriya_brahmanam_config = {
96
  "Show some verses from Taitriya Brahmanam",
97
  ],
98
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
 
4
  taitriya_brahmanam_config = {
5
  "name": "taitriya_brahmanam",
6
  "title": "Taitriya Brahmanam",
7
+ "category": ScriptureCategoryConstants.VEDAM,
8
  "output_dir": "./output/taitriya_brahmanam",
9
  "collection_name": "taitriya_brahmanam",
10
  "collection_embedding_fn": "openai",
 
96
  "Show some verses from Taitriya Brahmanam",
97
  ],
98
  "llm_hints": [],
99
+ "credits": {
100
+ "art": [
101
+ {
102
+ "name": "Sri TNCN",
103
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
104
+ "role": "Illustrator",
105
+ "notes": "Original artwork used with permission",
106
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
107
+ }
108
+ ],
109
+ "data": [
110
+ {
111
+ "name": "sanskritdocuments.org",
112
+ "url": "https://sanskritdocuments.org/doc_veda/taittirIyabrAhmaNam.html",
113
+ "role": "Data provider",
114
+ }
115
+ ],
116
+ "audio": [
117
+ {
118
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
119
+ "url": "https://www.youtube.com/@akivasudev",
120
+ "role": "Recitation audio provider",
121
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
122
+ },
123
+ ],
124
+ "video": [],
125
+ },
126
  }
modules/config/taitriya_samhitha.py CHANGED
@@ -4,7 +4,7 @@ from modules.config.categories import ScriptureCategoryConstants
4
  taitriya_samhitha_config = {
5
  "name": "taitriya_samhitha",
6
  "title": "Taitriya Samhitha",
7
- "category" : ScriptureCategoryConstants.VEDAM,
8
  "output_dir": "./output/taitriya_samhitha",
9
  "collection_name": "taitriya_samhitha",
10
  "collection_embedding_fn": "openai",
@@ -96,4 +96,31 @@ taitriya_samhitha_config = {
96
  "Show some verses from Taitriya Samhitha",
97
  ],
98
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
 
4
  taitriya_samhitha_config = {
5
  "name": "taitriya_samhitha",
6
  "title": "Taitriya Samhitha",
7
+ "category": ScriptureCategoryConstants.VEDAM,
8
  "output_dir": "./output/taitriya_samhitha",
9
  "collection_name": "taitriya_samhitha",
10
  "collection_embedding_fn": "openai",
 
96
  "Show some verses from Taitriya Samhitha",
97
  ],
98
  "llm_hints": [],
99
+ "credits": {
100
+ "art": [
101
+ {
102
+ "name": "Sri TNCN",
103
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
104
+ "role": "Illustrator",
105
+ "notes": "Original artwork used with permission",
106
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
107
+ }
108
+ ],
109
+ "data": [
110
+ {
111
+ "name": "sanskritdocuments.org",
112
+ "url": "https://sanskritdocuments.org/doc_veda/taittirIyasamhitA.html",
113
+ "role": "Data provider",
114
+ }
115
+ ],
116
+ "audio": [
117
+ {
118
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
119
+ "url": "https://www.youtube.com/@akivasudev",
120
+ "role": "Recitation audio provider",
121
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
122
+ },
123
+ ],
124
+ "video": [],
125
+ },
126
  }
modules/config/taitriya_upanishad.py CHANGED
@@ -5,57 +5,83 @@ from modules.scripture_helpers.taitriya_upanishad_helper import (
5
  )
6
 
7
  taitriya_upanishad_config = {
8
- "name": "taitriya_upanishad",
9
- "title": "Taitriya Upanishad",
10
- "category" : ScriptureCategoryConstants.VEDAM,
11
- "output_dir": "./output/taitriya_upanishad",
12
- "collection_name": "taitriya_upanishad",
13
- "collection_embedding_fn": "openai",
14
- "unit": "verse",
15
- "unit_field": "relative_verse_number",
16
- "chapter_order": lambda: get_chapter_order_from_taitriya_upanishad(),
17
- "field_mapping": {
18
- "text": "sanskrit",
19
- "unit_index": "relative_verse_number",
20
- "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')}",
21
- # "chapter_name": "chapter_title",
22
- "relative_path": lambda doc: f"॥ {doc.get('chapter_title')} ॥ {doc.get('relative_verse_number','')}",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  },
24
- "metadata_fields": [
25
- {
26
- "name": "chapter_title",
27
- "datatype": "str",
28
- "label": "Chapter Name",
29
- "description": "Name of the Chapter",
30
- "show_as_filter": True,
31
- "component": "dropdown",
32
- "lov": lambda: get_taitriya_upanishad_chapters(),
33
- "is_unique": True,
34
- },
35
- {
36
- "name": "relative_verse_number",
37
- "label": "Relative Verse Number",
38
- "datatype": "int",
39
- "description": "The relative verse number of the sloka inside the chapter.",
40
- "show_as_filter": True,
41
- "is_unique": True,
42
- },
43
- {
44
- "name": "sanskrit",
45
- "label": "Lyrics in sanskrit",
46
- "datatype": "str",
47
- "description": "The original sloka in sanskrit.",
48
- "show_as_filter": True,
49
- },
50
- ],
51
- "pdf_path": "./data/taitriya_upanishad.pdf",
52
- "source": "https://stotranidhi.com/",
53
- "language": "san+eng",
54
- "example_labels": [
55
- "Seeksha Valli",
56
- ],
57
- "examples": [
58
- "Show some verses from Seeksha Valli",
59
- ],
60
- "llm_hints": [],
61
- }
 
5
  )
6
 
7
  taitriya_upanishad_config = {
8
+ "name": "taitriya_upanishad",
9
+ "title": "Taitriya Upanishad",
10
+ "category": ScriptureCategoryConstants.VEDAM,
11
+ "output_dir": "./output/taitriya_upanishad",
12
+ "collection_name": "taitriya_upanishad",
13
+ "collection_embedding_fn": "openai",
14
+ "unit": "verse",
15
+ "unit_field": "relative_verse_number",
16
+ "chapter_order": lambda: get_chapter_order_from_taitriya_upanishad(),
17
+ "field_mapping": {
18
+ "text": "sanskrit",
19
+ "unit_index": "relative_verse_number",
20
+ "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')}",
21
+ # "chapter_name": "chapter_title",
22
+ "relative_path": lambda doc: f"॥ {doc.get('chapter_title')} ॥ {doc.get('relative_verse_number','')}",
23
+ },
24
+ "metadata_fields": [
25
+ {
26
+ "name": "chapter_title",
27
+ "datatype": "str",
28
+ "label": "Chapter Name",
29
+ "description": "Name of the Chapter",
30
+ "show_as_filter": True,
31
+ "component": "dropdown",
32
+ "lov": lambda: get_taitriya_upanishad_chapters(),
33
+ "is_unique": True,
34
+ },
35
+ {
36
+ "name": "relative_verse_number",
37
+ "label": "Relative Verse Number",
38
+ "datatype": "int",
39
+ "description": "The relative verse number of the sloka inside the chapter.",
40
+ "show_as_filter": True,
41
+ "is_unique": True,
42
+ },
43
+ {
44
+ "name": "sanskrit",
45
+ "label": "Lyrics in sanskrit",
46
+ "datatype": "str",
47
+ "description": "The original sloka in sanskrit.",
48
+ "show_as_filter": True,
49
+ },
50
+ ],
51
+ "pdf_path": "./data/taitriya_upanishad.pdf",
52
+ "source": "https://stotranidhi.com/",
53
+ "language": "san+eng",
54
+ "example_labels": [
55
+ "Seeksha Valli",
56
+ ],
57
+ "examples": [
58
+ "Show some verses from Seeksha Valli",
59
+ ],
60
+ "llm_hints": [],
61
+ "credits": {
62
+ "art": [
63
+ {
64
+ "name": "Sri TNCN",
65
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
66
+ "role": "Illustrator",
67
+ "notes": "Original artwork used with permission",
68
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
69
+ }
70
+ ],
71
+ "data": [
72
+ {
73
+ "name": "Stotranidhi",
74
+ "url": "https://stotranidhi.com/",
75
+ "role": "Data provider",
76
+ }
77
+ ],
78
+ "audio": [
79
+ {
80
+ "name": "Sri Krishnan Chakravarthy",
81
+ "url": "https://www.youtube.com",
82
+ "role": "Recitation audio provider",
83
  },
84
+ ],
85
+ "video": [],
86
+ },
87
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
modules/config/vishnu_sahasranamam.py CHANGED
@@ -74,4 +74,43 @@ vishnu_sahasranamam_config = {
74
  "show the verse that begins with शुक्लाम्बरधरं",
75
  ],
76
  "llm_hints": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  }
 
74
  "show the verse that begins with शुक्लाम्बरधरं",
75
  ],
76
  "llm_hints": [],
77
+ "credits": {
78
+ "art": [
79
+ {
80
+ "name": "Sri TNCN",
81
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
82
+ "role": "Illustrator",
83
+ "notes": "Original artwork used with permission",
84
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
85
+ }
86
+ ],
87
+ "data": [
88
+ {
89
+ "name": "swami-krishnananda.org",
90
+ "url": "https://www.swami-krishnananda.org/vishnu/Sri_Vishnu_Sahasranama_Stotram.pdf",
91
+ "role": "Data provider",
92
+ }
93
+ ],
94
+ "audio": [
95
+ {
96
+ "name": "Srirangam Sri Vasudevan Srinivasachariar",
97
+ "url": "https://www.youtube.com/@akivasudev",
98
+ "role": "Recitation audio provider",
99
+ "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
100
+ },
101
+ {
102
+ "name": "Srirangam Vikram Vasudevan",
103
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
104
+ "role": "Recitation audio provider",
105
+ "photo_url": "https://yt3.googleusercontent.com/lA5fiJuRDVGxOLkszb6O5DaiR1N7WcRVDHtJSQjO8IxCK-Y3VfMtYZP2Wm1SP0gUx8vj87jA=s160-c-k-c0x00ffffff-no-rj",
106
+ },
107
+ {
108
+ "name": "Srirangam Sashank Vikram",
109
+ "url": "https://www.youtube.com/@onedayonepasuram6126",
110
+ "role": "Recitation audio provider",
111
+ "photo_url": "https://drive.google.com/uc?export=download&id=1WukF9EBkxg00GjcuoX8enGhY3XOqwlVr",
112
+ },
113
+ ],
114
+ "video": [],
115
+ },
116
  }
server.py CHANGED
@@ -275,7 +275,9 @@ async def get_scripture_configs():
275
  "total": num_units,
276
  "enabled": "field_mapping" in s,
277
  "source": s.get("source", ""),
278
- "credits": s.get("credits", f"{s.get('source','')}"),
 
 
279
  "metadata_fields": metadata_fields,
280
  }
281
  )
@@ -295,7 +297,11 @@ async def search_scripture(
295
  - `n_results`: number of random results to return
296
  """
297
  try:
298
- logger.info("search_scripture: searching for %s with filters %s", scripture_name, filter_obj)
 
 
 
 
299
  db = SanatanDatabase()
300
  config = next(
301
  (s for s in SanatanConfig().scriptures if s["name"] == scripture_name), None
 
275
  "total": num_units,
276
  "enabled": "field_mapping" in s,
277
  "source": s.get("source", ""),
278
+ "credits": s.get(
279
+ "credits", {"art": [], "data": [], "audio": [], "video": []}
280
+ ),
281
  "metadata_fields": metadata_fields,
282
  }
283
  )
 
297
  - `n_results`: number of random results to return
298
  """
299
  try:
300
+ logger.info(
301
+ "search_scripture: searching for %s with filters %s",
302
+ scripture_name,
303
+ filter_obj,
304
+ )
305
  db = SanatanDatabase()
306
  config = next(
307
  (s for s in SanatanConfig().scriptures if s["name"] == scripture_name), None