MEOW commited on
Commit
151c8ce
·
unverified ·
1 Parent(s): 166d5d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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