Skip to content

Commit

Permalink
Fix max_length bug for hybrid search (#1700)
Browse files Browse the repository at this point in the history
Also updates requirements.txt for retrieval with openai
  • Loading branch information
jasper-xian authored Nov 3, 2023
1 parent cb444ee commit 01889cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyserini/search/hybrid/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def parse_args(parser, commands):
args.run.topics,
args.dense.encoded_queries,
args.dense.device,
args.dense.query_prefix)
args.dense.query_prefix,
args.dense.max_length)

if os.path.exists(args.dense.index):
# create searcher from index directory
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ nmslib>=2.1.1
onnxruntime>=1.8.1
lightgbm>=3.3.2
spacy>=3.2.1
pyyaml
pyyaml
openai>=0.28.0
tiktoken>=0.4.0

0 comments on commit 01889cc

Please sign in to comment.