Instructions to use vidore/colpali with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ColPali
How to use vidore/colpali with ColPali:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- sentence-transformers
How to use vidore/colpali with sentence-transformers:
from sentence_transformers import MultiVectorEncoder model = MultiVectorEncoder("vidore/colpali") queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Commit History
-
Integrate with Sentence Transformers via MultiVectorEncoder (#15)
- Integrate with Sentence Transformers via MultiVectorEncoder (d56fc86afc1f5eeb1c5293c122c1bde0e3f2af2f) - Normalize line endings to LF (dcf962b05fa82b0058a731f08a9e31d7232b8403) - Point usage snippet at vidore/colpali (89cf14f1038ea795c246841ad852cfcaef81d960) - Set config __version__ to 6.0.0 (605643d15a0596c0daeb1f38cb214a4e2ecc632c) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>91cafca
-
Upload folder using huggingface_hub
Verified signature234ecbe