superduper-qdrant 0.9.1__py3-none-any.whl → 0.9.2__py3-none-any.whl
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.
- superduper_qdrant/__init__.py +1 -1
- superduper_qdrant/qdrant.py +5 -2
- {superduper_qdrant-0.9.1.dist-info → superduper_qdrant-0.9.2.dist-info}/METADATA +1 -1
- superduper_qdrant-0.9.2.dist-info/RECORD +7 -0
- superduper_qdrant-0.9.1.dist-info/RECORD +0 -7
- {superduper_qdrant-0.9.1.dist-info → superduper_qdrant-0.9.2.dist-info}/WHEEL +0 -0
- {superduper_qdrant-0.9.1.dist-info → superduper_qdrant-0.9.2.dist-info}/licenses/LICENSE +0 -0
- {superduper_qdrant-0.9.1.dist-info → superduper_qdrant-0.9.2.dist-info}/top_level.txt +0 -0
superduper_qdrant/__init__.py
CHANGED
superduper_qdrant/qdrant.py
CHANGED
@@ -5,7 +5,7 @@ from copy import deepcopy
|
|
5
5
|
|
6
6
|
import numpy as np
|
7
7
|
from qdrant_client import QdrantClient, models
|
8
|
-
from superduper import CFG
|
8
|
+
from superduper import CFG, logging
|
9
9
|
from superduper.backends.base.vector_search import (
|
10
10
|
BaseVectorSearcher,
|
11
11
|
VectorIndexMeasureType,
|
@@ -36,7 +36,7 @@ class QdrantVectorSearcher(BaseVectorSearcher):
|
|
36
36
|
config_dict = deepcopy(CFG.vector_search_kwargs)
|
37
37
|
try:
|
38
38
|
plugin, uri = CFG.vector_search_engine.split("://")
|
39
|
-
if not uri.startswith("http"):
|
39
|
+
if not uri.startswith("http") and uri != ":memory:":
|
40
40
|
uri = f"http://{uri}"
|
41
41
|
if uri:
|
42
42
|
config_dict['location'] = uri
|
@@ -53,6 +53,8 @@ class QdrantVectorSearcher(BaseVectorSearcher):
|
|
53
53
|
# Use an in-memory instance by default
|
54
54
|
# https://github.com/qdrant/qdrant-client#local-mode
|
55
55
|
config_dict = config_dict or {"location": ":memory:"}
|
56
|
+
if '6334' in config_dict['location']:
|
57
|
+
config_dict["prefer_grpc"] = True
|
56
58
|
self.client = QdrantClient(**config_dict)
|
57
59
|
self.identifier = identifier
|
58
60
|
self.measure = measure
|
@@ -109,6 +111,7 @@ class QdrantVectorSearcher(BaseVectorSearcher):
|
|
109
111
|
payload={ID_PAYLOAD_KEY: item.id},
|
110
112
|
)
|
111
113
|
points.append(point)
|
114
|
+
logging.info(f"Adding {len(points)} points to Qdrant index '{self.identifier}'")
|
112
115
|
self.client.upsert(collection_name=self.identifier, points=points)
|
113
116
|
|
114
117
|
def drop(self):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: superduper_qdrant
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.2
|
4
4
|
Summary: SuperDuper Lance is a Python library that provides a high-level API for working with Lance vector search database.
|
5
5
|
Maintainer-email: "superduper.io, Inc." <opensource@superduper.io>
|
6
6
|
License:
|
@@ -0,0 +1,7 @@
|
|
1
|
+
superduper_qdrant/__init__.py,sha256=79SZLaOnGgsyMCRmE7ZQ-690aysyn6iClJdVRNl15J8,112
|
2
|
+
superduper_qdrant/qdrant.py,sha256=DMoSWl3rAm9IVnZ65dywmBYciKy94VvRR23FpGaxz24,7121
|
3
|
+
superduper_qdrant-0.9.2.dist-info/licenses/LICENSE,sha256=fq2WxmjewRN4VfDClVl-6CiVFZedp4y5_iGqQiXHBN8,11353
|
4
|
+
superduper_qdrant-0.9.2.dist-info/METADATA,sha256=obNLVA_PbelLaLvxMbzlWtppNKl5ENIjmEeZ_DmNWUY,13638
|
5
|
+
superduper_qdrant-0.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
+
superduper_qdrant-0.9.2.dist-info/top_level.txt,sha256=sq-9pdkTJIhMAzMoSI_UlucyRUrPk4Da78PFG_hPcd8,18
|
7
|
+
superduper_qdrant-0.9.2.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
superduper_qdrant/__init__.py,sha256=FgAGJy3NEKJSNEVB0VHJEXdTqfUk7NngxovQWwycXTc,112
|
2
|
-
superduper_qdrant/qdrant.py,sha256=qlWOcbO3ZT7GPuGpoYvf5VYDVWvYcWW7TQsccq4wXsw,6909
|
3
|
-
superduper_qdrant-0.9.1.dist-info/licenses/LICENSE,sha256=fq2WxmjewRN4VfDClVl-6CiVFZedp4y5_iGqQiXHBN8,11353
|
4
|
-
superduper_qdrant-0.9.1.dist-info/METADATA,sha256=R4EJDetZJrMFvnR2z7F8yewxbN1_A-3AQq3NLOJmoDI,13638
|
5
|
-
superduper_qdrant-0.9.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
6
|
-
superduper_qdrant-0.9.1.dist-info/top_level.txt,sha256=sq-9pdkTJIhMAzMoSI_UlucyRUrPk4Da78PFG_hPcd8,18
|
7
|
-
superduper_qdrant-0.9.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|