Skip to content

Commit

Permalink
Merge pull request #18 from codetalker7/query_embeddings
Browse files Browse the repository at this point in the history
Fixing indexing code to include `QueryTokenizer` in the `Checkpoint`.
  • Loading branch information
codetalker7 authored Jul 24, 2024
2 parents a8f332d + a4c7f85 commit 76e85ad
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 76e85ad

Please sign in to comment.