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 | |
| aarthi_prabandham_config = { | |
| "name": "aarthi_prabandham", | |
| "title": "Aarthi Prabandham", | |
| "banner_url": convert_drive_url_to_direct( | |
| "https://drive.google.com/file/d/1uLPo1Upx1vLJ6InxqOEMspAOz4UT1F4r/view?usp=drive_link" | |
| ), | |
| "category": ScriptureCategoryConstants.SRI_SOOKTHI, | |
| "output_dir": "./outputs/aarthi_prabandham", | |
| "collection_name": "aarthi_prabandham", | |
| "collection_embedding_fn": "openai", | |
| "unit": "pasuram", | |
| "unit_field": "_global_index", | |
| "field_mapping": { | |
| "text": "text_ta", | |
| "chapter_name": "chapter_name", | |
| "unit_index": "_global_index", | |
| "relative_path": lambda doc: f"{doc.get('chapter_name')} — {doc.get('relative_verse_number')}", | |
| "author": lambda doc: "Sri Manavala Mamunigal", | |
| "word_by_word_native": lambda doc: f"{doc.get('word_by_word_en')}", | |
| "translation": lambda doc: f"{doc.get('preface_ta')}\n{doc.get('translation_ta')}", | |
| }, | |
| "metadata_fields": [ | |
| { | |
| "name": "chapter_name", | |
| "datatype": "str", | |
| "label": "Chapter Name", | |
| "description": "Chapter title", | |
| "show_as_filter": True, | |
| "component": "dropdown", | |
| "lov": lambda: ["PASURAM", "THANIYAN"], | |
| }, | |
| { | |
| "name": "_global_index", | |
| "datatype": "int", | |
| "label": "Global Index", | |
| "description": "Absolute verse index", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "chapter_index", | |
| "datatype": "int", | |
| "label": "Chapter Index", | |
| "description": "Chapter index", | |
| }, | |
| { | |
| "name": "relative_verse_number", | |
| "datatype": "int", | |
| "label": "Verse Number (in chapter)", | |
| "description": "Sequential verse index inside the chapter", | |
| "show_as_filter": True, | |
| }, | |
| { | |
| "name": "text_ta", | |
| "datatype": "str", | |
| "label": "Tamil Verse", | |
| "description": "Original verse text in Tamil", | |
| "show_as_filter": True, | |
| }, | |
| ], | |
| "pdf_path": "./data/aarthi_prabandham.pdf", | |
| "source": "https://divyaprabandham.koyil.org/index.php/2023/04/arthi-prabandham-tamil-simple/", | |
| "language": "tam", | |
| "example_labels": [], | |
| "examples": [], | |
| "llm_hints": [], | |
| "credits": { | |
| "art": [ | |
| { | |
| "name": "Sri TNCN", | |
| "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/", | |
| "role": "Illustrator", | |
| "notes": "Original artwork used with permission", | |
| "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE", | |
| } | |
| ], | |
| "data": [ | |
| { | |
| "name": "divyaprabandham.koyil.org", | |
| "url": "https://divyaprabandham.koyil.org/index.php/2023/04/arthi-prabandham-tamil-simple/", | |
| "role": "Data Provider", | |
| } | |
| ], | |
| "audio": [ | |
| { | |
| "name": "Sri TNCN Swamy(Triplicane)", | |
| "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/", | |
| "role": "Recitation audio contributor", | |
| "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE", | |
| }, | |
| ], | |
| "video": [], | |
| }, | |
| "audio_modes": { | |
| "recitation": "Recitation", | |
| }, | |
| } | |