Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
| from modules.config.categories import ScriptureCategoryConstants | |
| from modules.google_drive.google_drive_utils import convert_drive_url_to_direct | |
| chathusloki_config = { | |
| "name": "chathusloki", | |
| "title": "Chathusloki", | |
| "banner_url": convert_drive_url_to_direct( | |
| "https://drive.google.com/file/d/1QXyNyhw7-y25T9z9wY0Vm0KxOLfxBM71/view?usp=drive_link" | |
| ), | |
| "category": ScriptureCategoryConstants.STOTRAM, | |
| "output_dir": "./output/chathusloki", | |
| "collection_name": "chathusloki", | |
| "unit": "verse", | |
| "unit_field": "sloka_number", | |
| "field_mapping": { | |
| "text": "sloka_devanagari", | |
| "title": lambda doc: f"Verse {doc.get('verse','')}", | |
| "unit_index": "sloka_number", | |
| "transliteration": "sloka_english_transliteration", | |
| "word_by_word_native": "meaning", | |
| "author": lambda doc: f"Sri Aalavandhaar", | |
| "relative_path": lambda doc: f"॥ चतुः श्लोकी ॥ {doc.get("sloka_number","")}", | |
| }, | |
| "metadata_fields": [ | |
| { | |
| "name": "sloka_number", | |
| "label": "Slokam Number", | |
| "datatype": "int", | |
| "description": "The index of the sloka or verse", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "meaning_short", | |
| "label": "Short meaning", | |
| "datatype": "str", | |
| "description": "A short meaning of the sanskrit verse in English.", | |
| "show_as_filter": True, | |
| }, | |
| ], | |
| "pdf_path": "./data/chathusloki.pdf", | |
| "source": "https://www.sadagopan.org/ebook/pdf/Chatusloki%20-%20VS.pdf", | |
| "language": "san+eng", | |
| "example_labels": ["Recite a sloka", "Commentary", "Role of Sridevi"], | |
| "examples": [ | |
| "Recite the 1st sloka from Chathusloki", | |
| "Show detailed commentary for sloka 2 from Chathusloki", | |
| "What is the role of Sri Devi in the universe according to the Chathusloki?", | |
| ], | |
| "llm_hints": [], | |
| "credits": { | |
| "art": [ | |
| { | |
| "name": "Sri TNCN", | |
| "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/", | |
| "role": "Illustrator", | |
| "notes": "Original artwork used with permission", | |
| "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE", | |
| } | |
| ], | |
| "data": [ | |
| { | |
| "name": "Sadagopan.org", | |
| "url": "https://www.sadagopan.org/ebook/pdf/Chatusloki%20-%20VS.pdf", | |
| "role": "Data provider", | |
| "photo_url": "https://www.sadagopan.org/assets/front/images/img1.png", | |
| } | |
| ], | |
| "audio": [ | |
| { | |
| "name": "Srirangam Sri Vasudevan Srinivasachariar", | |
| "url": "https://www.youtube.com/@akivasudev", | |
| "role": "Recitation audio provider", | |
| "context": [{"start": 1, "end": 4}], | |
| "photo_url": "https://drive.google.com/uc?export=download&id=1HB1Nr39j2-55rIeOK_wYNbZZndcGZIaf", | |
| }, | |
| ], | |
| "video": [], | |
| }, | |
| } | |