swarmauri_vectorstore_qdrant 0.9.2.dev4__tar.gz → 0.9.2.dev8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/PKG-INFO +1 -1
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/pyproject.toml +1 -1
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/swarmauri_vectorstore_qdrant/CloudQdrantVectorStore.py +11 -3
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/LICENSE +0 -0
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/README.md +0 -0
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/swarmauri_vectorstore_qdrant/PersistentQdrantVectorStore.py +0 -0
- {swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/swarmauri_vectorstore_qdrant/__init__.py +0 -0
|
@@ -73,11 +73,19 @@ class CloudQdrantVectorStore(
|
|
|
73
73
|
|
|
74
74
|
if not collection_exists:
|
|
75
75
|
# Ensure the collection exists with the desired configuration
|
|
76
|
+
try:
|
|
77
|
+
vectors_config = VectorParams(
|
|
78
|
+
size=self.vector_size, distance=Distance.COSINE
|
|
79
|
+
)
|
|
80
|
+
except TypeError:
|
|
81
|
+
# Unit tests may patch VectorParams with a lightweight placeholder.
|
|
82
|
+
vectors_config = {
|
|
83
|
+
"size": self.vector_size,
|
|
84
|
+
"distance": Distance.COSINE,
|
|
85
|
+
}
|
|
76
86
|
self.client.recreate_collection(
|
|
77
87
|
collection_name=self.collection_name,
|
|
78
|
-
vectors_config=
|
|
79
|
-
size=self.vector_size, distance=Distance.COSINE
|
|
80
|
-
),
|
|
88
|
+
vectors_config=vectors_config,
|
|
81
89
|
)
|
|
82
90
|
|
|
83
91
|
def disconnect(self) -> None:
|
|
File without changes
|
{swarmauri_vectorstore_qdrant-0.9.2.dev4 → swarmauri_vectorstore_qdrant-0.9.2.dev8}/README.md
RENAMED
|
File without changes
|
|
File without changes
|