Skip to content

Commit

Permalink
Fixing the indexing code to include the QueryTokenizer in the
Browse files Browse the repository at this point in the history
`CheckPoint`.
  • Loading branch information
codetalker7 committed Jul 24, 2024
1 parent a8f332d commit a4c7f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function index(indexer::Indexer)
# loading the models
@info "Loading ColBERT layers from HuggingFace."
base_colbert = BaseColBERT(checkpoint, config)
checkPoint = Checkpoint(base_colbert, DocTokenizer(base_colbert.tokenizer, config), config)
checkPoint = Checkpoint(base_colbert, DocTokenizer(base_colbert.tokenizer, config), QueryTokenizer(base_colbert.tokenizer, config), config)

# creating the encoder, saver and indexer
encoder = CollectionEncoder(config, checkPoint)
Expand Down

0 comments on commit a4c7f85

Please sign in to comment.