File size: 3,693 Bytes
ed5aa3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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",
    },
}