File size: 2,232 Bytes
d3787d1
7be9035
d3787d1
 
3c0fb3e
 
 
7be9035
 
 
0bdc135
3c0fb3e
 
 
 
cc0b1f9
 
 
 
 
 
 
 
3c0fb3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from modules.config.categories import ScriptureCategoryConstants
from modules.google_drive.google_drive_utils import convert_drive_url_to_direct


kamba_ramayanam_config = {
    "name": "kamba_ramayanam",
    "title": "Kamba Ramayanam (Tamil)",
    "banner_url": convert_drive_url_to_direct(
        "https://drive.google.com/file/d/1_e4AKWZUP5eBuob0yWIZfnERnSWVdcJl/view?usp=drive_link"
    ),
    "category": ScriptureCategoryConstants.ITHIHASAM,
    "output_dir": "./output/kamba_ramayanam",
    "collection_name": "kamba_ramayanam",
    "unit": "chunk",
    "unit_field": "chunk_index",
    # "field_mapping": {
    #     "chapter_name": lambda doc: f"{doc.get('kandam','')}",
    #     "title": lambda doc: f"{doc.get('padalam_ta','')} - {doc.get('padalam_en','')}".strip(),
    #     "author": lambda doc: "Kamban",
    #     "unit_index": "chunk_index",
    #     "verse": lambda doc: int(doc.get("verse_number", "0")),
    #     "relative_path": lambda doc: f"{doc.get('padalam_ta','')} - {doc.get('padalam_en','')}".strip(),
    # },
    "metadata_fields": [
        {
            "name": "chunk_index",
            "label": "Page Index",
            "datatype": "int",
            "description": "The index of the chunk",
            "show_as_filter": True,
            "is_unique": True,
        },
        {
            "name": "filename",
            "label": "File name from the source",
            "datatype": "str",
            "description": "The name of the file.",
        },
    ],
    "pdf_path": "./data/kamba_ramayanam.pdf",
    "source": "https://archive.org/details/vrajeshkumar_gmail_061/01-%E0%AE%AA%E0%AE%BE%E0%AE%B2%20%E0%AE%95%E0%AE%BE%E0%AE%A3%E0%AF%8D%E0%AE%9F%E0%AE%AE%E0%AF%8D/page/n15/mode/2up",
    "language": "tamil",
    "example_labels": [
        "About Jatayu",
        "About Hanuman",
        "About Vali",
        "About Sita",
        "About Ravana",
    ],
    "examples": [
        "What is the significance of Jatayu? show some sanskrit verses to support the argument",
        "Show some verses where Hanuman is mentioned",
        "How did Rama kill Vali",
        "How was Sita abducted",
        "How did Rama kill Ravana?",
    ],
    "llm_hints": [],
    "audio_modes": {},
}