Spaces:
Runtime error
Runtime error
MEOW commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def create_index(documents):
|
|
| 46 |
gpu_id=0 # Specify the GPU ID to use
|
| 47 |
output_fields=["field1","field2"]
|
| 48 |
)
|
| 49 |
-
vector_store = MilvusVectorStore(uri="./milvus_demo.db", dim=1024, overwrite=True) #For CPU only vector store
|
| 50 |
storage_context = StorageContext.from_defaults(vector_store=vector_store)
|
| 51 |
return VectorStoreIndex.from_documents(documents, storage_context=storage_context)
|
| 52 |
|
|
|
|
| 46 |
gpu_id=0 # Specify the GPU ID to use
|
| 47 |
output_fields=["field1","field2"]
|
| 48 |
)
|
| 49 |
+
# vector_store = MilvusVectorStore(uri="./milvus_demo.db", dim=1024, overwrite=True) #For CPU only vector store
|
| 50 |
storage_context = StorageContext.from_defaults(vector_store=vector_store)
|
| 51 |
return VectorStoreIndex.from_documents(documents, storage_context=storage_context)
|
| 52 |
|