Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ from llama_index.vector_stores import DeepLakeVectorStore
|
|
| 39 |
# Create an index over the documnts
|
| 40 |
vector_store = DeepLakeVectorStore(dataset_path=dataset_path,reset=True
|
| 41 |
)
|
| 42 |
-
|
| 43 |
storage_context = StorageContext.from_defaults(vector_store=vector_store)
|
| 44 |
|
| 45 |
index = VectorStoreIndex.from_documents([], storage_context=storage_context)
|
|
|
|
| 39 |
# Create an index over the documnts
|
| 40 |
vector_store = DeepLakeVectorStore(dataset_path=dataset_path,reset=True
|
| 41 |
)
|
| 42 |
+
service_context = ServiceContext.from_defaults()
|
| 43 |
storage_context = StorageContext.from_defaults(vector_store=vector_store)
|
| 44 |
|
| 45 |
index = VectorStoreIndex.from_documents([], storage_context=storage_context)
|