cognee-community-vector-adapter-qdrant 0.2.0__py3-none-any.whl → 0.2.1__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.
- cognee_community_vector_adapter_qdrant/qdrant_adapter.py +8 -1
- {cognee_community_vector_adapter_qdrant-0.2.0.dist-info → cognee_community_vector_adapter_qdrant-0.2.1.dist-info}/METADATA +2 -2
- {cognee_community_vector_adapter_qdrant-0.2.0.dist-info → cognee_community_vector_adapter_qdrant-0.2.1.dist-info}/RECORD +4 -4
- {cognee_community_vector_adapter_qdrant-0.2.0.dist-info → cognee_community_vector_adapter_qdrant-0.2.1.dist-info}/WHEEL +0 -0
|
@@ -180,6 +180,7 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
180
180
|
query_vector: list[float] | None = None,
|
|
181
181
|
limit: int | None = 15,
|
|
182
182
|
with_vector: bool = False,
|
|
183
|
+
include_payload: bool = False,
|
|
183
184
|
) -> list[ScoredResult]:
|
|
184
185
|
if query_text is None and query_vector is None:
|
|
185
186
|
raise MissingQueryParameterError()
|
|
@@ -218,6 +219,7 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
218
219
|
using="text",
|
|
219
220
|
limit=limit,
|
|
220
221
|
with_vectors=with_vector,
|
|
222
|
+
with_payload=include_payload,
|
|
221
223
|
)
|
|
222
224
|
|
|
223
225
|
await client.close()
|
|
@@ -228,7 +230,9 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
228
230
|
return [
|
|
229
231
|
ScoredResult(
|
|
230
232
|
id=parse_id(str(result.id)),
|
|
231
|
-
payload=
|
|
233
|
+
payload=None
|
|
234
|
+
if not result.payload
|
|
235
|
+
else {
|
|
232
236
|
**result.payload,
|
|
233
237
|
"id": parse_id(str(result.id)),
|
|
234
238
|
},
|
|
@@ -248,6 +252,7 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
248
252
|
query_texts: list[str],
|
|
249
253
|
limit: int | None = None,
|
|
250
254
|
with_vectors: bool = False,
|
|
255
|
+
include_payload: bool = False,
|
|
251
256
|
):
|
|
252
257
|
"""
|
|
253
258
|
Perform batch search in a Qdrant collection with dynamic search requests.
|
|
@@ -258,6 +263,7 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
258
263
|
- limit (int): List of result limits for search requests.
|
|
259
264
|
- with_vectors (bool, optional): Bool indicating whether to return
|
|
260
265
|
vectors for search requests.
|
|
266
|
+
- include_payload (bool, optional): Bool indicating whether to return payload in results.
|
|
261
267
|
|
|
262
268
|
Returns:
|
|
263
269
|
- results: The search results from Qdrant.
|
|
@@ -291,6 +297,7 @@ class QDrantAdapter(VectorDBInterface):
|
|
|
291
297
|
),
|
|
292
298
|
limit=limit,
|
|
293
299
|
with_vectors=with_vectors,
|
|
300
|
+
with_payload=include_payload,
|
|
294
301
|
)
|
|
295
302
|
|
|
296
303
|
await client.close()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognee-community-vector-adapter-qdrant
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Qdrant vector database adapter for cognee
|
|
5
5
|
Requires-Python: >=3.11,<=3.13
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
7
7
|
Classifier: Programming Language :: Python :: 3.11
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.12
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
-
Requires-Dist: cognee (==0.5.
|
|
10
|
+
Requires-Dist: cognee (==0.5.2)
|
|
11
11
|
Requires-Dist: instructor (>=1.11)
|
|
12
12
|
Requires-Dist: qdrant-client (>=1.16.0)
|
|
13
13
|
Requires-Dist: starlette (>=0.48.0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cognee_community_vector_adapter_qdrant/QdrantDatasetDatabaseHandler.py,sha256=mQFgATAdZeiBayoo4poLsXnCVrFPTLN3zSJdGzq0brk,1668
|
|
2
2
|
cognee_community_vector_adapter_qdrant/__init__.py,sha256=OYsRMTyBnNuusKB3rkQmwCppfdEf__AuXMw_Ma1k6lQ,71
|
|
3
|
-
cognee_community_vector_adapter_qdrant/qdrant_adapter.py,sha256=
|
|
3
|
+
cognee_community_vector_adapter_qdrant/qdrant_adapter.py,sha256=ONpLcjtufnSQEJoXLxfk77oOM2idiU3eGkZWSa5avFo,13591
|
|
4
4
|
cognee_community_vector_adapter_qdrant/register.py,sha256=_CUgC1Ton9HfPfsyi6dEQ5H1J47bXHAwFHIceWSo4SI,406
|
|
5
|
-
cognee_community_vector_adapter_qdrant-0.2.
|
|
6
|
-
cognee_community_vector_adapter_qdrant-0.2.
|
|
7
|
-
cognee_community_vector_adapter_qdrant-0.2.
|
|
5
|
+
cognee_community_vector_adapter_qdrant-0.2.1.dist-info/METADATA,sha256=QY87_e1VZ73U0ACxk6ba4YsCJXmsKZRP-YJUD3bbWYI,1645
|
|
6
|
+
cognee_community_vector_adapter_qdrant-0.2.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
7
|
+
cognee_community_vector_adapter_qdrant-0.2.1.dist-info/RECORD,,
|