Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files- copy_chromadb.py +5 -0
- modules/config/__init__.py +3 -1
- modules/config/aarthi_prabandham.py +100 -0
- modules/config/devaraja_ashtakam.py +16 -12
- modules/config/devaraja_mangalam.py +16 -12
- modules/config/dhati_panchakam.py +16 -12
- modules/config/gadhyathrayam.py +9 -1
- modules/config/geethartha_sangraha.py +16 -12
- modules/config/mukthaka_mangalam.py +16 -12
- modules/config/mukunda_mala.py +16 -12
- modules/config/narasimha_ashtakam.py +16 -12
- modules/config/panchayudha_stotram.py +16 -12
- modules/config/ranganatha_stotram.py +16 -12
- modules/config/thiruvaimozhi_nootrandhadhi.py +33 -16
- modules/config/upadesa_rathnamalai.py +9 -4
- modules/config/vaazhi_thirunaamams.py +102 -12
- modules/config/venkateswara_stotram.py +16 -12
- modules/config/yathiraja_vimsathi.py +16 -12
copy_chromadb.py
CHANGED
|
@@ -273,6 +273,11 @@ db_config = {
|
|
| 273 |
"source_collection_name": "gadhyathrayam",
|
| 274 |
"destination_collection_name": "gadhyathrayam"
|
| 275 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
|
| 277 |
}
|
| 278 |
|
|
|
|
| 273 |
"source_collection_name": "gadhyathrayam",
|
| 274 |
"destination_collection_name": "gadhyathrayam"
|
| 275 |
},
|
| 276 |
+
"aarthi_prabandham": {
|
| 277 |
+
"source_db_path": "../aarthi_prabandham_ai/chromadb_store",
|
| 278 |
+
"source_collection_name": "aarthi_prabandham",
|
| 279 |
+
"destination_collection_name": "aarthi_prabandham"
|
| 280 |
+
},
|
| 281 |
|
| 282 |
}
|
| 283 |
|
modules/config/__init__.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from modules.config.agnipuranam import agnipuranam_config
|
| 2 |
from modules.config.bhagavat_gita import bhagavat_gita_config
|
| 3 |
from modules.config.bhagavata_purana import bhagavata_purana_config
|
|
@@ -115,5 +116,6 @@ scripture_configurations = [
|
|
| 115 |
venkateswara_stotram_config,
|
| 116 |
yathiraja_vimsathi_config,
|
| 117 |
dhati_panchakam_config,
|
| 118 |
-
gadhyathrayam_config
|
|
|
|
| 119 |
]
|
|
|
|
| 1 |
+
from modules.config.aarthi_prabandham import aarthi_prabandham_config
|
| 2 |
from modules.config.agnipuranam import agnipuranam_config
|
| 3 |
from modules.config.bhagavat_gita import bhagavat_gita_config
|
| 4 |
from modules.config.bhagavata_purana import bhagavata_purana_config
|
|
|
|
| 116 |
venkateswara_stotram_config,
|
| 117 |
yathiraja_vimsathi_config,
|
| 118 |
dhati_panchakam_config,
|
| 119 |
+
gadhyathrayam_config,
|
| 120 |
+
aarthi_prabandham_config,
|
| 121 |
]
|
modules/config/aarthi_prabandham.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from modules.config.categories import ScriptureCategoryConstants
|
| 2 |
+
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
| 3 |
+
|
| 4 |
+
aarthi_prabandham_config = {
|
| 5 |
+
"name": "aarthi_prabandham",
|
| 6 |
+
"title": "Aarthi Prabandham",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
+
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
+
"output_dir": "./outputs/aarthi_prabandham",
|
| 12 |
+
"collection_name": "aarthi_prabandham",
|
| 13 |
+
"collection_embedding_fn": "openai",
|
| 14 |
+
"unit": "pasuram",
|
| 15 |
+
"unit_field": "_global_index",
|
| 16 |
+
"field_mapping": {
|
| 17 |
+
"text": "text_ta",
|
| 18 |
+
"chapter_name": "chapter_name",
|
| 19 |
+
"unit_index": "_global_index",
|
| 20 |
+
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('relative_verse_number')}",
|
| 21 |
+
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
+
"word_by_word_native": lambda doc: f"{doc.get('word_by_word_en')}",
|
| 23 |
+
"translation": lambda doc: f"{doc.get('preface_ta')}\n{doc.get('translation_ta')}",
|
| 24 |
+
},
|
| 25 |
+
"metadata_fields": [
|
| 26 |
+
{
|
| 27 |
+
"name": "chapter_name",
|
| 28 |
+
"datatype": "str",
|
| 29 |
+
"label": "Chapter Name",
|
| 30 |
+
"description": "Chapter title",
|
| 31 |
+
"show_as_filter": True,
|
| 32 |
+
"component": "dropdown",
|
| 33 |
+
"lov": lambda: ["PASURAM", "THANIYAN"],
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name": "_global_index",
|
| 37 |
+
"datatype": "int",
|
| 38 |
+
"label": "Global Index",
|
| 39 |
+
"description": "Absolute verse index",
|
| 40 |
+
"show_as_filter": True,
|
| 41 |
+
"is_unique": True,
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "chapter_index",
|
| 45 |
+
"datatype": "int",
|
| 46 |
+
"label": "Chapter Index",
|
| 47 |
+
"description": "Chapter index",
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"name": "relative_verse_number",
|
| 51 |
+
"datatype": "int",
|
| 52 |
+
"label": "Verse Number (in chapter)",
|
| 53 |
+
"description": "Sequential verse index inside the chapter",
|
| 54 |
+
"show_as_filter": True,
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "text_ta",
|
| 58 |
+
"datatype": "str",
|
| 59 |
+
"label": "Tamil Verse",
|
| 60 |
+
"description": "Original verse text in Tamil",
|
| 61 |
+
"show_as_filter": True,
|
| 62 |
+
},
|
| 63 |
+
],
|
| 64 |
+
"pdf_path": "./data/aarthi_prabandham.pdf",
|
| 65 |
+
"source": "https://divyaprabandham.koyil.org/index.php/2023/04/arthi-prabandham-tamil-simple/",
|
| 66 |
+
"language": "tam",
|
| 67 |
+
"example_labels": [],
|
| 68 |
+
"examples": [],
|
| 69 |
+
"llm_hints": [],
|
| 70 |
+
"credits": {
|
| 71 |
+
"art": [
|
| 72 |
+
{
|
| 73 |
+
"name": "Sri TNCN",
|
| 74 |
+
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
| 75 |
+
"role": "Illustrator",
|
| 76 |
+
"notes": "Original artwork used with permission",
|
| 77 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 78 |
+
}
|
| 79 |
+
],
|
| 80 |
+
"data": [
|
| 81 |
+
{
|
| 82 |
+
"name": "divyaprabandham.koyil.org",
|
| 83 |
+
"url": "https://divyaprabandham.koyil.org/index.php/2023/04/arthi-prabandham-tamil-simple/",
|
| 84 |
+
"role": "Data Provider",
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"audio": [
|
| 88 |
+
{
|
| 89 |
+
"name": "Sri TNCN Swamy(Triplicane)",
|
| 90 |
+
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
| 91 |
+
"role": "Recitation audio contributor",
|
| 92 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 93 |
+
},
|
| 94 |
+
],
|
| 95 |
+
"video": [],
|
| 96 |
+
},
|
| 97 |
+
"audio_modes": {
|
| 98 |
+
"recitation": "Recitation",
|
| 99 |
+
},
|
| 100 |
+
}
|
modules/config/devaraja_ashtakam.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
devaraja_ashtakam_config = {
|
| 5 |
"name": "devaraja_ashtakam",
|
| 6 |
"title": "Devaraja Ashtakam",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/devaraja_ashtakam",
|
| 10 |
"collection_name": "devaraja_ashtakam",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ devaraja_ashtakam_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Thirukkacchi Nambi",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ devaraja_ashtakam_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/devaraja_ashtakam.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ devaraja_ashtakam_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/devarAjAShTakam.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
devaraja_ashtakam_config = {
|
| 5 |
"name": "devaraja_ashtakam",
|
| 6 |
"title": "Devaraja Ashtakam",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/devaraja_ashtakam",
|
| 12 |
"collection_name": "devaraja_ashtakam",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Thirukkacchi Nambi",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/devaraja_ashtakam.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/devarAjAShTakam.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/devaraja_mangalam.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
devaraja_mangalam_config = {
|
| 5 |
"name": "devaraja_mangalam",
|
| 6 |
"title": "Devaraja Mangalam",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/devaraja_mangalam",
|
| 10 |
"collection_name": "devaraja_mangalam",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ devaraja_mangalam_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ devaraja_mangalam_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/devaraja_mangalam.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ devaraja_mangalam_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/devarAjamangalam.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
devaraja_mangalam_config = {
|
| 5 |
"name": "devaraja_mangalam",
|
| 6 |
"title": "Devaraja Mangalam",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/devaraja_mangalam",
|
| 12 |
"collection_name": "devaraja_mangalam",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/devaraja_mangalam.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/devarAjamangalam.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/dhati_panchakam.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
dhati_panchakam_config = {
|
| 5 |
"name": "dhati_panchakam",
|
| 6 |
"title": "Dhati Panchakam",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/dhati_panchakam",
|
| 10 |
"collection_name": "dhati_panchakam",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ dhati_panchakam_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Kooraththazhvan",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ dhati_panchakam_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/dhati_panchakam.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ dhati_panchakam_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "vignanam.org",
|
| 85 |
"url": "https://vignanam.org/devanagari/dhati-panchakam.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
dhati_panchakam_config = {
|
| 5 |
"name": "dhati_panchakam",
|
| 6 |
"title": "Dhati Panchakam",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/dhati_panchakam",
|
| 12 |
"collection_name": "dhati_panchakam",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Kooraththazhvan",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/dhati_panchakam.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "vignanam.org",
|
| 81 |
"url": "https://vignanam.org/devanagari/dhati-panchakam.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/gadhyathrayam.py
CHANGED
|
@@ -114,7 +114,15 @@ gadhyathrayam_config = {
|
|
| 114 |
"role": "Data Provider",
|
| 115 |
},
|
| 116 |
],
|
| 117 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
"video": [],
|
| 119 |
},
|
| 120 |
"audio_modes": {
|
|
|
|
| 114 |
"role": "Data Provider",
|
| 115 |
},
|
| 116 |
],
|
| 117 |
+
"audio": [
|
| 118 |
+
{
|
| 119 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 120 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 121 |
+
"role": "Recitation audio contributor",
|
| 122 |
+
"context": [],
|
| 123 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 124 |
+
},
|
| 125 |
+
],
|
| 126 |
"video": [],
|
| 127 |
},
|
| 128 |
"audio_modes": {
|
modules/config/geethartha_sangraha.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
geethartha_sangraha_config = {
|
| 5 |
"name": "geethartha_sangraha",
|
| 6 |
"title": "Geethartha Sangraha",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/geethartha_sangraha",
|
| 10 |
"collection_name": "geethartha_sangraha",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ geethartha_sangraha_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Yamunacharya",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ geethartha_sangraha_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/geethartha_sangraha.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ geethartha_sangraha_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_giitaa/gitaarthasangraha.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
geethartha_sangraha_config = {
|
| 5 |
"name": "geethartha_sangraha",
|
| 6 |
"title": "Geethartha Sangraha",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/geethartha_sangraha",
|
| 12 |
"collection_name": "geethartha_sangraha",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Yamunacharya",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/geethartha_sangraha.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_giitaa/gitaarthasangraha.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/mukthaka_mangalam.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
mukthaka_mangalam_config = {
|
| 5 |
"name": "mukthaka_mangalam",
|
| 6 |
"title": "Mukthaka Mangalam",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/mukthaka_mangalam",
|
| 10 |
"collection_name": "mukthaka_mangalam",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ mukthaka_mangalam_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ mukthaka_mangalam_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/mukthaka_mangalam.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ mukthaka_mangalam_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "stotranidhi.com",
|
| 85 |
"url": "https://stotranidhi.com/hi/mukthaka-mangalam-sri-manavala-mamunigal-in-sanskrit/",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
mukthaka_mangalam_config = {
|
| 5 |
"name": "mukthaka_mangalam",
|
| 6 |
"title": "Mukthaka Mangalam",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/mukthaka_mangalam",
|
| 12 |
"collection_name": "mukthaka_mangalam",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/mukthaka_mangalam.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "stotranidhi.com",
|
| 81 |
"url": "https://stotranidhi.com/hi/mukthaka-mangalam-sri-manavala-mamunigal-in-sanskrit/",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/mukunda_mala.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
mukunda_mala_config = {
|
| 5 |
"name": "mukunda_mala",
|
| 6 |
"title": "Mukunda Mala",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/mukunda_mala",
|
| 10 |
"collection_name": "mukunda_mala",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ mukunda_mala_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Kulashekhara Azhwar",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ mukunda_mala_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/mukunda_mala.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ mukunda_mala_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/mukundamAlA.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
mukunda_mala_config = {
|
| 5 |
"name": "mukunda_mala",
|
| 6 |
"title": "Mukunda Mala",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/mukunda_mala",
|
| 12 |
"collection_name": "mukunda_mala",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Kulashekhara Azhwar",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/mukunda_mala.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/mukundamAlA.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/narasimha_ashtakam.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
narasimha_ashtakam_config = {
|
| 5 |
"name": "narasimha_ashtakam",
|
| 6 |
"title": "Narasimha Ashtakam",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/narasimha_ashtakam",
|
| 10 |
"collection_name": "narasimha_ashtakam",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ narasimha_ashtakam_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Swamy Vadhikesari Azhagiyamanavala Jeeyar",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ narasimha_ashtakam_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/narasimha_ashtakam.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ narasimha_ashtakam_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/nrisimhAShTakam.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
narasimha_ashtakam_config = {
|
| 5 |
"name": "narasimha_ashtakam",
|
| 6 |
"title": "Narasimha Ashtakam",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/narasimha_ashtakam",
|
| 12 |
"collection_name": "narasimha_ashtakam",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Swamy Vadhikesari Azhagiyamanavala Jeeyar",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/narasimha_ashtakam.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/nrisimhAShTakam.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/panchayudha_stotram.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
panchayudha_stotram_config = {
|
| 5 |
"name": "panchayudha_stotram",
|
| 6 |
"title": "Panchayudha Stotram",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/panchayudha_stotram",
|
| 10 |
"collection_name": "panchayudha_stotram",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ panchayudha_stotram_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ panchayudha_stotram_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/panchayudha_stotram.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ panchayudha_stotram_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/vishnupanchAyudh.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
panchayudha_stotram_config = {
|
| 5 |
"name": "panchayudha_stotram",
|
| 6 |
"title": "Panchayudha Stotram",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/panchayudha_stotram",
|
| 12 |
"collection_name": "panchayudha_stotram",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/panchayudha_stotram.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/vishnupanchAyudh.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/ranganatha_stotram.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
ranganatha_stotram_config = {
|
| 5 |
"name": "ranganatha_stotram",
|
| 6 |
"title": "Ranganatha Stotram",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/ranganatha_stotram",
|
| 10 |
"collection_name": "ranganatha_stotram",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ ranganatha_stotram_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Parasara Bhattar",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ ranganatha_stotram_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/ranganatha_stotram.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ ranganatha_stotram_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/ranganAthastotram.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
ranganatha_stotram_config = {
|
| 5 |
"name": "ranganatha_stotram",
|
| 6 |
"title": "Ranganatha Stotram",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/ranganatha_stotram",
|
| 12 |
"collection_name": "ranganatha_stotram",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Parasara Bhattar",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/ranganatha_stotram.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/ranganAthastotram.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/thiruvaimozhi_nootrandhadhi.py
CHANGED
|
@@ -11,11 +11,9 @@ thiruvaimozhi_nootrandhadhi_config = {
|
|
| 11 |
"output_dir": "./outputs/thiruvaimozhi_nootrandhadhi",
|
| 12 |
"collection_name": "thiruvaimozhi_nootrandhadhi",
|
| 13 |
"collection_embedding_fn": "openai",
|
| 14 |
-
|
| 15 |
# Each verse is a unit
|
| 16 |
"unit": "pasuram",
|
| 17 |
"unit_field": "_global_index",
|
| 18 |
-
|
| 19 |
# === FIELD MAPPING ===
|
| 20 |
"field_mapping": {
|
| 21 |
"text": "text_ta",
|
|
@@ -25,14 +23,28 @@ thiruvaimozhi_nootrandhadhi_config = {
|
|
| 25 |
"word_by_word_native": "word_by_word_en",
|
| 26 |
"author": lambda doc: f"Manavala Mamunigal",
|
| 27 |
"translation": lambda doc: "\n\n".join(
|
| 28 |
-
filter(
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
),
|
| 34 |
},
|
| 35 |
-
|
| 36 |
# === METADATA FIELDS ===
|
| 37 |
"metadata_fields": [
|
| 38 |
{
|
|
@@ -42,7 +54,7 @@ thiruvaimozhi_nootrandhadhi_config = {
|
|
| 42 |
"description": "Chapter title",
|
| 43 |
"show_as_filter": True,
|
| 44 |
"component": "dropdown",
|
| 45 |
-
"lov": lambda: ["THANIYAN","ANDHADHI"],
|
| 46 |
},
|
| 47 |
{
|
| 48 |
"name": "_global_index",
|
|
@@ -97,10 +109,8 @@ thiruvaimozhi_nootrandhadhi_config = {
|
|
| 97 |
"description": "Key points / commentary",
|
| 98 |
},
|
| 99 |
],
|
| 100 |
-
|
| 101 |
# Optional PDF if you have
|
| 102 |
"pdf_path": "./data/thiruvaimozhi_nootrandhadhi.pdf",
|
| 103 |
-
|
| 104 |
"source": "koyil.org",
|
| 105 |
"language": "tam",
|
| 106 |
"example_labels": [],
|
|
@@ -128,11 +138,18 @@ thiruvaimozhi_nootrandhadhi_config = {
|
|
| 128 |
"role": "Data provider (English)",
|
| 129 |
},
|
| 130 |
],
|
| 131 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
"video": [],
|
| 133 |
},
|
| 134 |
-
"audio_modes"
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
}
|
| 138 |
}
|
|
|
|
| 11 |
"output_dir": "./outputs/thiruvaimozhi_nootrandhadhi",
|
| 12 |
"collection_name": "thiruvaimozhi_nootrandhadhi",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
# Each verse is a unit
|
| 15 |
"unit": "pasuram",
|
| 16 |
"unit_field": "_global_index",
|
|
|
|
| 17 |
# === FIELD MAPPING ===
|
| 18 |
"field_mapping": {
|
| 19 |
"text": "text_ta",
|
|
|
|
| 23 |
"word_by_word_native": "word_by_word_en",
|
| 24 |
"author": lambda doc: f"Manavala Mamunigal",
|
| 25 |
"translation": lambda doc: "\n\n".join(
|
| 26 |
+
filter(
|
| 27 |
+
None,
|
| 28 |
+
[
|
| 29 |
+
(
|
| 30 |
+
f"TAMIL:\n{doc.get('translation_ta')}"
|
| 31 |
+
if doc.get("translation_ta")
|
| 32 |
+
else None
|
| 33 |
+
),
|
| 34 |
+
(
|
| 35 |
+
f"ENGLISH:\n{doc.get('translation_en')}"
|
| 36 |
+
if doc.get("translation_en")
|
| 37 |
+
else None
|
| 38 |
+
),
|
| 39 |
+
(
|
| 40 |
+
f"VYAKYANAM:\n{doc.get('highlights')}"
|
| 41 |
+
if doc.get("highlights")
|
| 42 |
+
else None
|
| 43 |
+
),
|
| 44 |
+
],
|
| 45 |
+
)
|
| 46 |
),
|
| 47 |
},
|
|
|
|
| 48 |
# === METADATA FIELDS ===
|
| 49 |
"metadata_fields": [
|
| 50 |
{
|
|
|
|
| 54 |
"description": "Chapter title",
|
| 55 |
"show_as_filter": True,
|
| 56 |
"component": "dropdown",
|
| 57 |
+
"lov": lambda: ["THANIYAN", "ANDHADHI"],
|
| 58 |
},
|
| 59 |
{
|
| 60 |
"name": "_global_index",
|
|
|
|
| 109 |
"description": "Key points / commentary",
|
| 110 |
},
|
| 111 |
],
|
|
|
|
| 112 |
# Optional PDF if you have
|
| 113 |
"pdf_path": "./data/thiruvaimozhi_nootrandhadhi.pdf",
|
|
|
|
| 114 |
"source": "koyil.org",
|
| 115 |
"language": "tam",
|
| 116 |
"example_labels": [],
|
|
|
|
| 138 |
"role": "Data provider (English)",
|
| 139 |
},
|
| 140 |
],
|
| 141 |
+
"audio": [
|
| 142 |
+
{
|
| 143 |
+
"name": "Sri TNCN Swamy(Triplicane)",
|
| 144 |
+
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
| 145 |
+
"role": "Recitation audio contributor",
|
| 146 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 147 |
+
},
|
| 148 |
+
],
|
| 149 |
"video": [],
|
| 150 |
},
|
| 151 |
+
"audio_modes": {
|
| 152 |
+
"recitation": "Recitation",
|
| 153 |
+
"upanyasam": "Upanyasam",
|
| 154 |
+
},
|
| 155 |
}
|
modules/config/upadesa_rathnamalai.py
CHANGED
|
@@ -93,10 +93,15 @@ upadesa_rathnamalai_config = {
|
|
| 93 |
"role": "Data provider",
|
| 94 |
},
|
| 95 |
],
|
| 96 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
"video": [],
|
| 98 |
},
|
| 99 |
-
"audio_modes"
|
| 100 |
-
"recitation": "Recitation"
|
| 101 |
-
}
|
| 102 |
}
|
|
|
|
| 93 |
"role": "Data provider",
|
| 94 |
},
|
| 95 |
],
|
| 96 |
+
"audio": [
|
| 97 |
+
{
|
| 98 |
+
"name": "Sri TNCN Swamy(Triplicane)",
|
| 99 |
+
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
| 100 |
+
"role": "Recitation audio contributor",
|
| 101 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 102 |
+
},
|
| 103 |
+
],
|
| 104 |
"video": [],
|
| 105 |
},
|
| 106 |
+
"audio_modes": {"recitation": "Recitation"},
|
|
|
|
|
|
|
| 107 |
}
|
modules/config/vaazhi_thirunaamams.py
CHANGED
|
@@ -1,14 +1,97 @@
|
|
| 1 |
from modules.config.categories import ScriptureCategoryConstants
|
| 2 |
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
| 3 |
|
|
|
|
| 4 |
def get_subjects():
|
| 5 |
-
return sorted(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def get_months():
|
| 8 |
-
return sorted(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
def get_nakshathrams():
|
| 11 |
-
return sorted(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
vaazhi_thirunaamams_config = {
|
| 14 |
"name": "vaazhi_thirunaamams",
|
|
@@ -20,18 +103,15 @@ vaazhi_thirunaamams_config = {
|
|
| 20 |
"output_dir": "./output/vaazhi_thirunaamams",
|
| 21 |
"collection_name": "vaazhi_thirunaamams",
|
| 22 |
"collection_embedding_fn": "openai",
|
| 23 |
-
|
| 24 |
"unit": "verse",
|
| 25 |
"unit_field": "_global_index",
|
| 26 |
-
|
| 27 |
"field_mapping": {
|
| 28 |
"text": "text",
|
| 29 |
"chapter_name": "subject",
|
| 30 |
"unit_index": "_global_index",
|
| 31 |
"relative_path": lambda doc: f"{doc.get("subject")} - {doc.get("date")}",
|
| 32 |
-
"translation"
|
| 33 |
},
|
| 34 |
-
|
| 35 |
"metadata_fields": [
|
| 36 |
{
|
| 37 |
"name": "_global_index",
|
|
@@ -67,7 +147,6 @@ vaazhi_thirunaamams_config = {
|
|
| 67 |
"show_as_filter": True,
|
| 68 |
"component": "dropdown",
|
| 69 |
"lov": lambda: get_nakshathrams(),
|
| 70 |
-
|
| 71 |
},
|
| 72 |
{
|
| 73 |
"name": "text",
|
|
@@ -77,14 +156,14 @@ vaazhi_thirunaamams_config = {
|
|
| 77 |
"show_as_filter": True,
|
| 78 |
},
|
| 79 |
],
|
| 80 |
-
|
| 81 |
"pdf_path": "./data/vaazhi_thirunaamams.pdf",
|
| 82 |
"source": "",
|
| 83 |
"language": "tam",
|
| 84 |
"example_labels": [],
|
| 85 |
"examples": [],
|
| 86 |
"llm_hints": [],
|
| 87 |
-
"credits": {
|
|
|
|
| 88 |
{
|
| 89 |
"name": "Sri TNCN",
|
| 90 |
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
|
@@ -92,11 +171,22 @@ vaazhi_thirunaamams_config = {
|
|
| 92 |
"notes": "Original artwork used with permission",
|
| 93 |
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 94 |
}
|
| 95 |
-
],
|
|
|
|
| 96 |
{
|
| 97 |
"name": "koyil.org",
|
| 98 |
"url": "https://divyaprabandham.koyil.org/index.php/2020/12/vazhi-thirunamams-oranvazhi-intro-tamil-simple/",
|
| 99 |
"role": "Data provider",
|
| 100 |
},
|
| 101 |
-
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
}
|
|
|
|
| 1 |
from modules.config.categories import ScriptureCategoryConstants
|
| 2 |
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
| 3 |
|
| 4 |
+
|
| 5 |
def get_subjects():
|
| 6 |
+
return sorted(
|
| 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 |
def get_months():
|
| 49 |
+
return sorted(
|
| 50 |
+
[
|
| 51 |
+
"பங்குனி",
|
| 52 |
+
"ஐப்பசி",
|
| 53 |
+
"வைகாசி",
|
| 54 |
+
"ஆனி",
|
| 55 |
+
"ஆடி",
|
| 56 |
+
"சித்திரை",
|
| 57 |
+
"மாசி",
|
| 58 |
+
"மார்கழி",
|
| 59 |
+
"தை",
|
| 60 |
+
"கார்த்திகை",
|
| 61 |
+
"ஆவணி",
|
| 62 |
+
"புரட்டாசி",
|
| 63 |
+
]
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
|
| 67 |
def get_nakshathrams():
|
| 68 |
+
return sorted(
|
| 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 |
vaazhi_thirunaamams_config = {
|
| 97 |
"name": "vaazhi_thirunaamams",
|
|
|
|
| 103 |
"output_dir": "./output/vaazhi_thirunaamams",
|
| 104 |
"collection_name": "vaazhi_thirunaamams",
|
| 105 |
"collection_embedding_fn": "openai",
|
|
|
|
| 106 |
"unit": "verse",
|
| 107 |
"unit_field": "_global_index",
|
|
|
|
| 108 |
"field_mapping": {
|
| 109 |
"text": "text",
|
| 110 |
"chapter_name": "subject",
|
| 111 |
"unit_index": "_global_index",
|
| 112 |
"relative_path": lambda doc: f"{doc.get("subject")} - {doc.get("date")}",
|
| 113 |
+
"translation": "translation",
|
| 114 |
},
|
|
|
|
| 115 |
"metadata_fields": [
|
| 116 |
{
|
| 117 |
"name": "_global_index",
|
|
|
|
| 147 |
"show_as_filter": True,
|
| 148 |
"component": "dropdown",
|
| 149 |
"lov": lambda: get_nakshathrams(),
|
|
|
|
| 150 |
},
|
| 151 |
{
|
| 152 |
"name": "text",
|
|
|
|
| 156 |
"show_as_filter": True,
|
| 157 |
},
|
| 158 |
],
|
|
|
|
| 159 |
"pdf_path": "./data/vaazhi_thirunaamams.pdf",
|
| 160 |
"source": "",
|
| 161 |
"language": "tam",
|
| 162 |
"example_labels": [],
|
| 163 |
"examples": [],
|
| 164 |
"llm_hints": [],
|
| 165 |
+
"credits": {
|
| 166 |
+
"art": [
|
| 167 |
{
|
| 168 |
"name": "Sri TNCN",
|
| 169 |
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
|
|
|
| 171 |
"notes": "Original artwork used with permission",
|
| 172 |
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 173 |
}
|
| 174 |
+
],
|
| 175 |
+
"data": [
|
| 176 |
{
|
| 177 |
"name": "koyil.org",
|
| 178 |
"url": "https://divyaprabandham.koyil.org/index.php/2020/12/vazhi-thirunamams-oranvazhi-intro-tamil-simple/",
|
| 179 |
"role": "Data provider",
|
| 180 |
},
|
| 181 |
+
],
|
| 182 |
+
"audio": [
|
| 183 |
+
{
|
| 184 |
+
"name": "Sri TNCN Swamy(Triplicane)",
|
| 185 |
+
"url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
|
| 186 |
+
"role": "Recitation audio contributor",
|
| 187 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
|
| 188 |
+
},
|
| 189 |
+
],
|
| 190 |
+
"video": [],
|
| 191 |
+
},
|
| 192 |
}
|
modules/config/venkateswara_stotram.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
venkateswara_stotram_config = {
|
| 5 |
"name": "venkateswara_stotram",
|
| 6 |
"title": "Venkateswara Stotram",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/venkateswara_stotram",
|
| 10 |
"collection_name": "venkateswara_stotram",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ venkateswara_stotram_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Prativadi Bayankara Annan Swami",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ venkateswara_stotram_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/venkateswara_stotram.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ venkateswara_stotram_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_vishhnu/venkateshvara.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
venkateswara_stotram_config = {
|
| 5 |
"name": "venkateswara_stotram",
|
| 6 |
"title": "Venkateswara Stotram",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/venkateswara_stotram",
|
| 12 |
"collection_name": "venkateswara_stotram",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Shri Prativadi Bayankara Annan Swami",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/venkateswara_stotram.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_vishhnu/venkateshvara.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|
modules/config/yathiraja_vimsathi.py
CHANGED
|
@@ -4,15 +4,15 @@ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
|
|
| 4 |
yathiraja_vimsathi_config = {
|
| 5 |
"name": "yathiraja_vimsathi",
|
| 6 |
"title": "Yathiraja Vimsathi",
|
| 7 |
-
"banner_url": convert_drive_url_to_direct(
|
|
|
|
|
|
|
| 8 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 9 |
"output_dir": "./outputs/yathiraja_vimsathi",
|
| 10 |
"collection_name": "yathiraja_vimsathi",
|
| 11 |
"collection_embedding_fn": "openai",
|
| 12 |
-
|
| 13 |
"unit": "slokam",
|
| 14 |
"unit_field": "_global_index",
|
| 15 |
-
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
@@ -20,7 +20,6 @@ yathiraja_vimsathi_config = {
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
| 23 |
-
|
| 24 |
"metadata_fields": [
|
| 25 |
{
|
| 26 |
"name": "chapter_name",
|
|
@@ -60,15 +59,12 @@ yathiraja_vimsathi_config = {
|
|
| 60 |
"show_as_filter": True,
|
| 61 |
},
|
| 62 |
],
|
| 63 |
-
|
| 64 |
"pdf_path": "./data/yathiraja_vimsathi.pdf",
|
| 65 |
-
|
| 66 |
"source": "sanskritdocuments.org",
|
| 67 |
"language": "san",
|
| 68 |
"example_labels": [],
|
| 69 |
"examples": [],
|
| 70 |
"llm_hints": [],
|
| 71 |
-
|
| 72 |
"credits": {
|
| 73 |
"art": [
|
| 74 |
{
|
|
@@ -80,13 +76,21 @@ yathiraja_vimsathi_config = {
|
|
| 80 |
}
|
| 81 |
],
|
| 82 |
"data": [
|
| 83 |
-
|
| 84 |
"name": "sanskritdocuments.org",
|
| 85 |
"url": "https://sanskritdocuments.org/doc_deities_misc/yatirAjaviMshati.html",
|
| 86 |
-
"role": "Data Provider"
|
| 87 |
-
|
| 88 |
-
],
|
| 89 |
-
"audio": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
"video": [],
|
| 91 |
},
|
| 92 |
}
|
|
|
|
| 4 |
yathiraja_vimsathi_config = {
|
| 5 |
"name": "yathiraja_vimsathi",
|
| 6 |
"title": "Yathiraja Vimsathi",
|
| 7 |
+
"banner_url": convert_drive_url_to_direct(
|
| 8 |
+
"https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link"
|
| 9 |
+
),
|
| 10 |
"category": ScriptureCategoryConstants.SRI_SOOKTHI,
|
| 11 |
"output_dir": "./outputs/yathiraja_vimsathi",
|
| 12 |
"collection_name": "yathiraja_vimsathi",
|
| 13 |
"collection_embedding_fn": "openai",
|
|
|
|
| 14 |
"unit": "slokam",
|
| 15 |
"unit_field": "_global_index",
|
|
|
|
| 16 |
"field_mapping": {
|
| 17 |
"text": "lyrics_sa",
|
| 18 |
"chapter_name": "chapter_name",
|
|
|
|
| 20 |
"relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('slokam_index')}",
|
| 21 |
"author": lambda doc: "Sri Manavala Mamunigal",
|
| 22 |
},
|
|
|
|
| 23 |
"metadata_fields": [
|
| 24 |
{
|
| 25 |
"name": "chapter_name",
|
|
|
|
| 59 |
"show_as_filter": True,
|
| 60 |
},
|
| 61 |
],
|
|
|
|
| 62 |
"pdf_path": "./data/yathiraja_vimsathi.pdf",
|
|
|
|
| 63 |
"source": "sanskritdocuments.org",
|
| 64 |
"language": "san",
|
| 65 |
"example_labels": [],
|
| 66 |
"examples": [],
|
| 67 |
"llm_hints": [],
|
|
|
|
| 68 |
"credits": {
|
| 69 |
"art": [
|
| 70 |
{
|
|
|
|
| 76 |
}
|
| 77 |
],
|
| 78 |
"data": [
|
| 79 |
+
{
|
| 80 |
"name": "sanskritdocuments.org",
|
| 81 |
"url": "https://sanskritdocuments.org/doc_deities_misc/yatirAjaviMshati.html",
|
| 82 |
+
"role": "Data Provider",
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"audio": [
|
| 86 |
+
{
|
| 87 |
+
"name": "Sri Vasudevan Srinivasachariar Swamy(Srirangam)",
|
| 88 |
+
"url": "https://www.youtube.com/@akivasudev",
|
| 89 |
+
"role": "Recitation audio contributor",
|
| 90 |
+
"context": [],
|
| 91 |
+
"photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf",
|
| 92 |
+
},
|
| 93 |
+
],
|
| 94 |
"video": [],
|
| 95 |
},
|
| 96 |
}
|