Do we support late interaction models like ColBERT? Or Sparse models like BM25? #116
S1LV3RJ1NX
announced in
Announcements
Replies: 4 comments
|
ColBert is in the works and will be added soon.Current model that is late interaction based is ColPali. For Sparse models you can use the Splade models as shown in the readme. These models will give you sparse vectors which you can then use for BM25 search. |
0 replies
|
This has taken a while, but I have been waiting to pull the Colbert implementation to Candle. Until then, I will add the ONNX implementation for the next release, which is scheduled for this weekend. Is there any preference on which models you would like to have? |
0 replies
|
Colbert support has been added. You can use most of the colbert models as long as they have ONNX weights. It currently supports text_batch embedding. In the later versions I will integrate it with the ingestion pipeline. model:ColbertModel = ColbertModel.from_pretrained_onnx(
hf_model_id="jinaai/jina-colbert-v2",
path_in_repo="onnx/model.onnx",
)
model:ColbertModel = ColbertModel.from_pretrained_onnx(
hf_model_id="answerdotai/answerai-colbert-small-v1",
path_in_repo="onnx/model_fp16.onnx",
) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
All reactions