Skip to content

Commit

Permalink
merge changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
Athe-kunal committed Sep 28, 2024
1 parent 0e11a7f commit 057ed6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byaldi/colpali.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def search(
else:
req_embeddings, req_embedding_ids = self.filter_embeddings(filter_metadata=filter_metadata)
# Compute scores
scores = self.processor.score(qs,req_embeddings, self.indexed_embeddings).cpu().numpy()
scores = self.processor.score(qs,req_embeddings).cpu().numpy()

# Get top k relevant pages
top_pages = scores.argsort(axis=1)[0][-k:][::-1].tolist()
Expand Down

0 comments on commit 057ed6f

Please sign in to comment.