sentence-transformers
ONNX
Safetensors
ColBERT
multi-vector
passage-retrieval
custom_code
🇪🇺 Region: EU
Instructions to use jinaai/jina-colbert-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jinaai/jina-colbert-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jinaai/jina-colbert-v2", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
| { | |
| "query_token_id": "[QueryMarker]", | |
| "doc_token_id": "[DocumentMarker]", | |
| "query_token": "[QueryMarker]", | |
| "doc_token": "[DocumentMarker]", | |
| "ncells": null, | |
| "centroid_score_threshold": null, | |
| "ndocs": null, | |
| "load_index_with_mmap": false, | |
| "index_path": null, | |
| "nbits": 2, | |
| "kmeans_niters": 20, | |
| "resume": false, | |
| "similarity": "cosine", | |
| "bsize": 32, | |
| "accumsteps": 1, | |
| "lr": null, | |
| "maxsteps": null, | |
| "save_every": null, | |
| "warmup": null, | |
| "warmup_bert": null, | |
| "relu": false, | |
| "nway": 7, | |
| "use_ib_negatives": false, | |
| "reranker": false, | |
| "distillation_alpha": 1.0, | |
| "ignore_scores": true, | |
| "model_name": "jinaai/jina-colbert-v2", | |
| "query_maxlen": 32, | |
| "attend_to_mask_tokens": true, | |
| "interaction": "colbert", | |
| "doc_maxlen": 300, | |
| "mask_punctuation": true, | |
| "checkpoint": null, | |
| "triples": null, | |
| "collection": null, | |
| "queries": null, | |
| "index_name": null, | |
| "overwrite": false, | |
| "root": "", | |
| "experiment": "default", | |
| "index_root": null, | |
| "name": "2024-08/15/14.12.19", | |
| "rank": 0, | |
| "nranks": 1, | |
| "amp": false, | |
| "gpus": 2, | |
| "avoid_fork_if_possible": false, | |
| "dim": 128 | |
| } |