Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,23 +54,10 @@ def initialize_pinecone(index_name: str):
|
|
54 |
## Change down here
|
55 |
##################################################
|
56 |
|
57 |
-
# Initialize Pinecone index and BM25 encoder
|
58 |
-
# pinecone_index = initialize_pinecone("uae-national-library-and-archives-vectorstore")
|
59 |
-
# bm25 = BM25Encoder().load("./UAE-NLA.json")
|
60 |
-
|
61 |
-
### This is for UAE Legislation Website
|
62 |
-
# pinecone_index = initialize_pinecone("uae-legislation-site-data")
|
63 |
-
# bm25 = BM25Encoder().load("./bm25_uae_legislation_data.json")
|
64 |
-
|
65 |
-
|
66 |
-
### This is for u.ae Website
|
67 |
-
# pinecone_index = initialize_pinecone("vector-store-index")
|
68 |
-
# bm25 = BM25Encoder().load("./bm25_u.ae.json")
|
69 |
-
|
70 |
|
71 |
# #### This is for UAE Economic Department Website
|
72 |
-
pinecone_index = initialize_pinecone("abu-dhabi-
|
73 |
-
bm25 = BM25Encoder().load("./abu-dhabi-
|
74 |
|
75 |
|
76 |
|
|
|
54 |
## Change down here
|
55 |
##################################################
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# #### This is for UAE Economic Department Website
|
59 |
+
pinecone_index = initialize_pinecone("abu-dhabi-government")
|
60 |
+
bm25 = BM25Encoder().load("./abu-dhabi-governemnt.json")
|
61 |
|
62 |
|
63 |
|