Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ Settings.service_context = ServiceContext.from_defaults(chunk_size=5512, llm=llm
|
|
69 |
# rebuild storage context
|
70 |
storage_context = StorageContext.from_defaults(persist_dir="./storage")
|
71 |
# load index
|
72 |
-
index = load_index_from_storage(storage_context
|
73 |
|
74 |
"""
|
75 |
query_engine = index.as_query_engine()
|
|
|
69 |
# rebuild storage context
|
70 |
storage_context = StorageContext.from_defaults(persist_dir="./storage")
|
71 |
# load index
|
72 |
+
index = load_index_from_storage(storage_context, service_context =service_context)
|
73 |
|
74 |
"""
|
75 |
query_engine = index.as_query_engine()
|