updated query function with scroll too

This commit is contained in:
expruc
2025-08-09 22:04:41 +03:00
parent 88abd01b87
commit 8af9ad3f30
2 changed files with 6 additions and 6 deletions
@@ -179,12 +179,12 @@ class QdrantClient(VectorDBBase):
)
)
points = self.client.query_points(
points = self.client.scroll(
collection_name=f"{self.collection_prefix}_{collection_name}",
query_filter=models.Filter(should=field_conditions),
scroll_filter=models.Filter(should=field_conditions),
limit=limit,
)
return self._result_to_get_result(points.points)
return self._result_to_get_result(points[0])
except Exception as e:
log.exception(f"Error querying a collection '{collection_name}': {e}")
return None