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 | |
| bhagavata_purana_config = { | |
| "name": "bhagavata_purana", | |
| "title": "Srimad Bhagavatham", | |
| "banner_url": convert_drive_url_to_direct( | |
| "https://drive.google.com/file/d/1APDzjcF-G4tn6qHHn0QFmA-odcrQS2-e/view?usp=drive_link" | |
| ), | |
| "category" : ScriptureCategoryConstants.PURANAM, | |
| "output_dir": "./output/bhagavata_purana", | |
| "collection_name": "bhagavata_purana", | |
| "collection_embedding_fn": "openai", | |
| "unit": "sloka", | |
| "unit_field": "_global_index", | |
| "field_mapping": { | |
| "text": "sanskrit", | |
| "unit_index": "sloka_number", | |
| "chapter_name": lambda doc: ( | |
| f"Book {doc.get('book_number')}:Chapter {doc.get('chapter_number')}" | |
| ), | |
| "author": lambda doc: f" Sage Vyasa", | |
| "word_by_word_native": "wbw", | |
| "translation": "translation", | |
| "relative_path": lambda doc: ( | |
| f"{doc.get('book_number')}.{doc.get('chapter_number')}.{doc.get('sloka_number')} || {doc.get('_global_index')} ||" | |
| ), | |
| }, | |
| "metadata_fields": [ | |
| { | |
| "name": "book_number", | |
| "datatype": "str", | |
| "label": "Book Number", | |
| "description": "Book Number", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "chapter_number", | |
| "datatype": "str", | |
| "label": "Chapter Number", | |
| "description": "Chapter Number", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "sloka_number", | |
| "datatype": "int", | |
| "label": "Relative Verse Number", | |
| "description": "Relative Verse Number", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "_global_index", | |
| "datatype": "int", | |
| "label": "Absolute Verse Number", | |
| "description": "Absolute Verse Number", | |
| "show_as_filter": True, | |
| "is_unique": True, | |
| }, | |
| { | |
| "name": "sanskrit", | |
| "label": "Lyrics in Sanskrit", | |
| "datatype": "str", | |
| "description": "The original verse in Sanskrit.", | |
| "show_as_filter": True, | |
| }, | |
| ], | |
| "pdf_path": "./data/bhagavata_purana.pdf", | |
| "source": "https://bhaagavatam-firststep.org/", | |
| "language": "san+eng", | |
| "example_labels": ["Gajendra Moksham", "Prahalad"], | |
| "examples": [ | |
| "State some verses that showcase the devotion of Gajendra the elephant", | |
| "State some verses that showcase the devotion of Prahlada", | |
| ], | |
| "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": "First Step", | |
| "url": "https://bhaagavatam-firststep.org/", | |
| "role": "Data provider", | |
| }, | |
| ], | |
| "audio": [], | |
| "video": [], | |
| }, | |
| "audio_modes": { | |
| "recitation": "Recitation", | |
| }, | |
| } | |