File size: 3,503 Bytes
d3787d1
7be9035
d3787d1
 
3c0fb3e
 
4f1c880
7be9035
 
 
d3787d1
3c0fb3e
 
4f1c880
 
 
 
 
 
 
 
 
 
 
 
 
5a1f9d8
4f1c880
 
3c0fb3e
 
4f1c880
3c0fb3e
4f1c880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3c0fb3e
 
4f1c880
3c0fb3e
4f1c880
 
3c0fb3e
 
 
4f1c880
 
 
 
 
 
 
3c0fb3e
 
4f1c880
3c0fb3e
 
 
 
 
 
 
4f1c880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0bdc135
 
 
3c0fb3e
1
2
3
4
5
6
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
97
98
99
100
101
102
103
104
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",
    },
}