Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def data_ingestion():
|
|
| 44 |
documents = SimpleDirectoryReader(DATA_DIR).load_data()
|
| 45 |
print(documents)
|
| 46 |
storage_context = StorageContext.from_defaults()
|
| 47 |
-
index = VectorStoreIndex.from_documents(documents)
|
| 48 |
index.storage_context.persist(persist_dir=PERSIST_DIR)
|
| 49 |
|
| 50 |
def handle_query(query):
|
|
|
|
| 44 |
documents = SimpleDirectoryReader(DATA_DIR).load_data()
|
| 45 |
print(documents)
|
| 46 |
storage_context = StorageContext.from_defaults()
|
| 47 |
+
index = VectorStoreIndex.from_documents(documents,show_progress=True)
|
| 48 |
index.storage_context.persist(persist_dir=PERSIST_DIR)
|
| 49 |
|
| 50 |
def handle_query(query):
|