Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,16 +41,10 @@ else:
|
|
| 41 |
|
| 42 |
client = qdrant_client.QdrantClient(location=":memory:")
|
| 43 |
|
| 44 |
-
client.create_collection(
|
| 45 |
-
collection_name='paper',
|
| 46 |
-
vectors_config=models.VectorParams(
|
| 47 |
-
size=1536,
|
| 48 |
-
distance=models.Distance.COSINE
|
| 49 |
-
)
|
| 50 |
-
)
|
| 51 |
vector_store = QdrantVectorStore(
|
| 52 |
collection_name="paper",
|
| 53 |
client=client,
|
|
|
|
| 54 |
enable_hybrid=True,
|
| 55 |
batch_size=20,
|
| 56 |
)
|
|
|
|
| 41 |
|
| 42 |
client = qdrant_client.QdrantClient(location=":memory:")
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
vector_store = QdrantVectorStore(
|
| 45 |
collection_name="paper",
|
| 46 |
client=client,
|
| 47 |
+
vector_field="embedding",
|
| 48 |
enable_hybrid=True,
|
| 49 |
batch_size=20,
|
| 50 |
)
|