Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney committed Dec 4, 2024
1 parent acdd1e8 commit 6efc78c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyterrier_dr/flex/flatnav_retr.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def transform(self, inp: pd.DataFrame) -> pd.DataFrame:
scores, dids = self.flatnav_index.search(
queries=query_vecs[qidx:qidx+QBATCH],
ef_search=self.ef_search,
K=self.num_results
K=min(self.num_results, len(self.flex_index)),
)
scores = -scores # distances -> scores
for s, d in zip(scores, dids):
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pytest
pytest-subtests
pytest-cov
pytest-json-report
git+https://github.com/terrierteam/pyterrier_adaptive
voyager
FlagEmbedding
faiss-cpu
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ torch
numpy>=1.21.0, <2.0.0
npids
sentence_transformers
pyterrier-adaptive

0 comments on commit 6efc78c

Please sign in to comment.