Skip to content

Commit

Permalink
explicit projection when reading from Astra DB
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus committed May 14, 2024
1 parent e383a64 commit cda4454
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 cda4454

Please sign in to comment.