From b74781bf3665b1ddd8b25d31cd0142936e2f281f Mon Sep 17 00:00:00 2001 From: Eric Hare Date: Tue, 20 Feb 2024 12:09:05 -0700 Subject: [PATCH] FIX: proper name for the sort param --- .../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"), )