Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,12 @@ def configure_service_context(llm, embed_model):
|
|
36 |
|
37 |
def initialize_vector_store_index(data_path, service_context):
|
38 |
documents = SimpleDirectoryReader(data_path).load_data()
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
def main():
|
42 |
st.title("Cloudflare RAG")
|
|
|
36 |
|
37 |
def initialize_vector_store_index(data_path, service_context):
|
38 |
documents = SimpleDirectoryReader(data_path).load_data()
|
39 |
+
import pickle
|
40 |
+
|
41 |
+
# Load the index from a file
|
42 |
+
with open('./index_file.pkl', 'rb') as f:
|
43 |
+
index = pickle.load(f)
|
44 |
+
return index
|
45 |
|
46 |
def main():
|
47 |
st.title("Cloudflare RAG")
|