sentence-transformers
ONNX
Safetensors
English
bert
ColBERT
multi-vector
RAGatouille
passage-retrieval
Instructions to use answerdotai/answerai-colbert-small-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use answerdotai/answerai-colbert-small-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("answerdotai/answerai-colbert-small-v1") 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
Problem loading
#5
by jalbarracin - opened
Hi, I'm getting this while trying to load the model:
OSError: answerdotai/answerai-colbert-small-v1 does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.
Thank you for your help
Hey, what code are you trying to use to load the model? This seems like an antiquated error message from transformers not trying to load the .safetensors model… I’m thinking it will go away if you upgrade your version of transformers.
bclavie changed discussion status to closed
Thank you. Fixed by upgrading transformers.