Spaces:
Runtime error
Runtime error
uncomment load_index_from_storage
Browse files
app.py
CHANGED
|
@@ -102,9 +102,10 @@ print("[do_end][indexing] index is " + index.index_id)
|
|
| 102 |
print("[do_end][indexing] index is " + str(index.ref_doc_info))
|
| 103 |
|
| 104 |
# Load the index from the storage context
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
| 108 |
'''
|
| 109 |
UnstructuredReader = download_loader("UnstructuredReader", refresh_cache=True)
|
| 110 |
loader = UnstructuredReader()
|
|
|
|
| 102 |
print("[do_end][indexing] index is " + str(index.ref_doc_info))
|
| 103 |
|
| 104 |
# Load the index from the storage context
|
| 105 |
+
index = load_index_from_storage(storage_context, service_context=service_context)
|
| 106 |
+
print("[load_index_from_storage][indexing] index is " + index.index_id)
|
| 107 |
+
print("[load_index_from_storage][indexing] index is " + str(index.ref_doc_info))
|
| 108 |
+
|
| 109 |
'''
|
| 110 |
UnstructuredReader = download_loader("UnstructuredReader", refresh_cache=True)
|
| 111 |
loader = UnstructuredReader()
|