Skip to content

Commit

Permalink
explicit projection when reading from Astra DB (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus authored Jun 5, 2024
1 parent 1a91451 commit 3d4ca4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/superagent/app/vectorstores/astra_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def _query(self, vector, top_k, filters=None):
query = {
"sort": {"$vector": vector},
"options": {"limit": top_k, "includeSimilarity": True},
"projection": {"*": 1},
}
if filters is not None:
query["filter"] = filters
Expand Down

0 comments on commit 3d4ca4b

Please sign in to comment.