Skip to content

Commit

Permalink
seach with an embedded_query, not an embedded_text
Browse files Browse the repository at this point in the history
  • Loading branch information
choccccy committed Jul 22, 2023
1 parent 95d7a56 commit 8cfd185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylib/embedding_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def search(self, query, **kwargs):
kwargs: other args to be passed to qdrant_client.QdrantClient.search(). Common ones:
limit - maximum number of results to return (useful for top-k query)
'''
embedded_text = self._embedding_model.encode(query)
return self.db.search(collection_name=self.name, query_vector=embedded_text, **kwargs)
embedded_query = self._embedding_model.encode(query)
return self.db.search(collection_name=self.name, query_vector=embedded_query, **kwargs)

def count(self):
'''
Expand Down

0 comments on commit 8cfd185

Please sign in to comment.