Skip to content

Commit

Permalink
Fix backwards vavlues in pgvector.py (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayceRossum authored Aug 15, 2023
1 parent e242160 commit 5aa7e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptcache/manager/vector_data/pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def search(self, data: np.ndarray, top_k: int = -1):
).order_by(
similarity
).limit(top_k).all()
search_result = [(r[0].id, r[1]) for r in search_result]
search_result = [(r[1], r[0].id) for r in search_result]

return search_result

Expand Down

0 comments on commit 5aa7e1e

Please sign in to comment.