From 17faf532cb886442afd6945f41fb3d4a6c0b7c8b Mon Sep 17 00:00:00 2001 From: Eric Hare Date: Wed, 21 Feb 2024 00:45:20 -0700 Subject: [PATCH] FIX: proper name for the sort param (#454) --- .../haystack_integrations/document_stores/astra/astra_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/astra/src/haystack_integrations/document_stores/astra/astra_client.py b/integrations/astra/src/haystack_integrations/document_stores/astra/astra_client.py index 2a29cbc00..6e7b1a33f 100644 --- a/integrations/astra/src/haystack_integrations/document_stores/astra/astra_client.py +++ b/integrations/astra/src/haystack_integrations/document_stores/astra/astra_client.py @@ -185,7 +185,7 @@ def _query(self, vector, top_k, filters=None): def find_documents(self, find_query): response_dict = self._astra_db_collection.find( filter=find_query.get("filter"), - projection=find_query.get("sort"), + sort=find_query.get("sort"), options=find_query.get("options"), )