vikramvasudevan commited on
Commit
70d4d64
·
verified ·
1 Parent(s): ae8fefb

Upload folder using huggingface_hub

Browse files
.gitignore CHANGED
@@ -12,3 +12,4 @@ wheels/
12
  chromadb-store/
13
  chromadb-store.zip
14
  outputs/
 
 
12
  chromadb-store/
13
  chromadb-store.zip
14
  outputs/
15
+ chromadb-store_20251112.zip
copy_chromadb.py CHANGED
@@ -93,6 +93,11 @@ db_config = {
93
  "source_collection_name": "raghuveera_gadhyam",
94
  "destination_collection_name": "raghuveera_gadhyam",
95
  },
 
 
 
 
 
96
  }
97
 
98
  parser = argparse.ArgumentParser(description="My app with database parameter")
 
93
  "source_collection_name": "raghuveera_gadhyam",
94
  "destination_collection_name": "raghuveera_gadhyam",
95
  },
96
+ "narayaneeyam": {
97
+ "source_db_path": "../narayaneeyam_ai/chromadb_store",
98
+ "source_collection_name": "narayaneeyam",
99
+ "destination_collection_name": "narayaneeyam",
100
+ },
101
  }
102
 
103
  parser = argparse.ArgumentParser(description="My app with database parameter")
modules/config/__init__.py CHANGED
@@ -8,6 +8,7 @@ from modules.config.divya_prabandham_taniyans import divya_prabandham_taniyans_c
8
  from modules.config.kamba_ramayanam import kamba_ramayanam_config
9
  from modules.config.kamba_ramayanam_en import kamba_ramayanam_en_config
10
  from modules.config.katakam import katakam_config
 
11
  from modules.config.pancha_sooktham import pancha_sooktham_config
12
  from modules.config.raghuveera_gadhyam import raghuveera_gadhyam_config
13
  from modules.config.shanthi_panchakam import shanthi_panchakam_config
@@ -48,5 +49,6 @@ scripture_configurations = [
48
  brahma_sutra_config,
49
  sri_vachana_bhushanam_config,
50
  desika_prabandham_config,
51
- raghuveera_gadhyam_config
 
52
  ]
 
8
  from modules.config.kamba_ramayanam import kamba_ramayanam_config
9
  from modules.config.kamba_ramayanam_en import kamba_ramayanam_en_config
10
  from modules.config.katakam import katakam_config
11
+ from modules.config.narayaneeyam import narayaneeyam_config
12
  from modules.config.pancha_sooktham import pancha_sooktham_config
13
  from modules.config.raghuveera_gadhyam import raghuveera_gadhyam_config
14
  from modules.config.shanthi_panchakam import shanthi_panchakam_config
 
49
  brahma_sutra_config,
50
  sri_vachana_bhushanam_config,
51
  desika_prabandham_config,
52
+ raghuveera_gadhyam_config,
53
+ narayaneeyam_config,
54
  ]
modules/config/narayaneeyam.py ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from modules.config.categories import ScriptureCategoryConstants
2
+ from modules.google_drive.google_drive_utils import convert_drive_url_to_direct
3
+
4
+
5
+ def fn_list_of_chapters():
6
+ return [f"Dashaka {idx}" for idx in range(1,101)]
7
+
8
+
9
+ narayaneeyam_config = {
10
+ "name": "narayaneeyam",
11
+ "title": "Narayaneeyam",
12
+ "category": ScriptureCategoryConstants.STOTRAM,
13
+ "banner_url": convert_drive_url_to_direct(
14
+ "https://drive.google.com/file/d/1aRvTo0rOqwWgV_gekntrw1h0B0Hln3Yf/view?usp=drive_link"
15
+ ),
16
+ "output_dir": "./output/narayaneeyam",
17
+ "collection_name": "narayaneeyam",
18
+ "collection_embedding_fn": "openai",
19
+ "unit": "sloka",
20
+ "unit_field": "_global_index",
21
+ "field_mapping": {
22
+ "text": "lyrics_sa",
23
+ "unit_index": "relative_verse_index",
24
+ "chapter_name": "chapter_name",
25
+ "author": lambda doc: f" Sri Meppattur Narayana Bhattathiri",
26
+ "word_by_word_native": "wbw_english",
27
+ "translation": "translation",
28
+ "relative_path": lambda doc: (
29
+ f"{doc.get('chapter_name')}:{doc.get('relative_verse_index')} || {doc.get('_global_index')} ||"
30
+ ),
31
+ },
32
+ "metadata_fields": [
33
+ {
34
+ "name": "chapter_name",
35
+ "datatype": "str",
36
+ "label": "Chapter Name",
37
+ "description": "Name of the Chapter in Sanskrit",
38
+ "show_as_filter": True,
39
+ "component": "dropdown",
40
+ "lov": lambda: [x for x in fn_list_of_chapters()],
41
+ "is_unique": True,
42
+ },
43
+ {
44
+ "name": "relative_verse_index",
45
+ "datatype": "int",
46
+ "label": "Relative Verse Number",
47
+ "description": "Relative Verse Number",
48
+ "show_as_filter": True,
49
+ "is_unique": True,
50
+ },
51
+ {
52
+ "name": "_global_index",
53
+ "datatype": "int",
54
+ "label": "Absolute Verse Number",
55
+ "description": "Absolute Verse Number",
56
+ "show_as_filter": True,
57
+ "is_unique": True,
58
+ },
59
+ {
60
+ "name": "lyrics_sa",
61
+ "label": "Lyrics in Sanskrit",
62
+ "datatype": "str",
63
+ "description": "The original verse in Sanskrit.",
64
+ "show_as_filter": True,
65
+ },
66
+ ],
67
+ "pdf_path": "./data/narayaneeyam.pdf",
68
+ "source": "https://narayaneeyam-firststep.org/",
69
+ "language": "san+eng",
70
+ "example_labels": [
71
+ "Narayaneeyam",
72
+ ],
73
+ "examples": [
74
+ "Show some verses from Narayaneeyam",
75
+ ],
76
+ "llm_hints": [],
77
+ "credits": {
78
+ "art": [
79
+ {
80
+ "name": "Sri TNCN",
81
+ "url": "https://www.linkedin.com/in/narashiman-chakravarthy-54326111/",
82
+ "role": "Illustrator",
83
+ "notes": "Original artwork used with permission",
84
+ "photo_url": "https://drive.google.com/uc?export=download&id=1D4Vo-Mvkp1RdZR6whUkcjvNBIW1yHSUE",
85
+ }
86
+ ],
87
+ "data": [
88
+ {
89
+ "name": "First Step",
90
+ "url": "https://narayaneeyam-firststep.org/",
91
+ "role": "Data provider",
92
+ },
93
+ ],
94
+ "audio": [
95
+ {
96
+ "name": "Sanskrit Documents",
97
+ "url": "https://sanskritdocuments.org/sites/completenarayaneeyam",
98
+ "role": "Audio provider",
99
+ },
100
+ ],
101
+ "video": [],
102
+ },
103
+ }