cognee-community-vector-adapter-qdrant 0.2.0__tar.gz → 0.2.1__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.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognee-community-vector-adapter-qdrant
3
- Version: 0.2.0
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.1)
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)
@@ -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,12 +1,12 @@
1
1
  [project]
2
2
  name = "cognee-community-vector-adapter-qdrant"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Qdrant vector database adapter for cognee"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11,<=3.13"
7
7
  dependencies = [
8
8
  "qdrant-client>=1.16.0",
9
- "cognee==0.5.1",
9
+ "cognee==0.5.2",
10
10
  "starlette>=0.48.0",
11
11
  "instructor>=1.11"
12
12
  ]