Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,7 @@ def displayPDF(file):
|
|
| 42 |
|
| 43 |
def data_ingestion():
|
| 44 |
documents = SimpleDirectoryReader(DATA_DIR).load_data()
|
|
|
|
| 45 |
storage_context = StorageContext.from_defaults()
|
| 46 |
index = VectorStoreIndex.from_documents(documents)
|
| 47 |
index.storage_context.persist(persist_dir=PERSIST_DIR)
|
|
|
|
| 42 |
|
| 43 |
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)
|