Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def process_upload(files):
|
|
61 |
|
62 |
# Build the index and chat engine using Qdrant as the vector store.
|
63 |
global client, vector_store, storage_context, index, query_engine, memory, chat_engine
|
64 |
-
|
65 |
|
66 |
# vector_store = QdrantVectorStore(
|
67 |
# collection_name="paper",
|
@@ -70,10 +70,10 @@ def process_upload(files):
|
|
70 |
# batch_size=20,
|
71 |
# )
|
72 |
collection_name = "paper"
|
73 |
-
client = qdrant_client.QdrantClient(
|
74 |
-
|
75 |
-
|
76 |
-
)
|
77 |
existing_collections = {col.name for col in client.get_collections().collections}
|
78 |
if collection_name not in existing_collections:
|
79 |
client.create_collection(
|
|
|
61 |
|
62 |
# Build the index and chat engine using Qdrant as the vector store.
|
63 |
global client, vector_store, storage_context, index, query_engine, memory, chat_engine
|
64 |
+
client = qdrant_client.QdrantClient(location=":memory:")
|
65 |
|
66 |
# vector_store = QdrantVectorStore(
|
67 |
# collection_name="paper",
|
|
|
70 |
# batch_size=20,
|
71 |
# )
|
72 |
collection_name = "paper"
|
73 |
+
# client = qdrant_client.QdrantClient(
|
74 |
+
# path="./qdrant_db",
|
75 |
+
# prefer_grpc=True
|
76 |
+
# )
|
77 |
existing_collections = {col.name for col in client.get_collections().collections}
|
78 |
if collection_name not in existing_collections:
|
79 |
client.create_collection(
|