This model can be used to build embeddings databases with
txtai
for semantic search and/or as a knowledge source for retrieval augmented generation (RAG).
Note: txtai 9.0+ is required for late interaction model support
import txtai
embeddings = txtai.Embeddings(
sparse="neuml/pubmedbert-base-colbert",
content=True
)
embeddings.index(documents())
# Run a query
embeddings.search("query to run")
Late interaction models excel as reranker pipelines.
from txtai.pipeline import Reranker, Similarity
similarity = Similarity(path="neuml/pubmedbert-base-colbert", lateencode=True)
ranker = Reranker(embeddings, similarity)
ranker("query to run")
Usage (PyLate)
Alternatively, the model can be loaded with
PyLate
.
Performance of this model compared to the top base models on the
MTEB leaderboard
is shown below. A popular smaller model was also evaluated along with the most downloaded PubMed similarity model on the Hugging Face Hub.
The following datasets were used to evaluate model performance.
While this isn't the highest scoring model, note how it is the best model for the first two datasets, which are retrieval datasets. ColBERT models can be better at picking up on query nuances given that vectors are not mean pooled together.
The model also performs well enough for
MUVERA encoding
. The goal with MUVERA is "good enough" recall that picks up on the signal and is then paired with a reranker pipeline.
pubmedbert-base-colbert huggingface.co is an AI model on huggingface.co that provides pubmedbert-base-colbert's model effect (), which can be used instantly with this NeuML pubmedbert-base-colbert model. huggingface.co supports a free trial of the pubmedbert-base-colbert model, and also provides paid use of the pubmedbert-base-colbert. Support call pubmedbert-base-colbert model through api, including Node.js, Python, http.
pubmedbert-base-colbert huggingface.co is an online trial and call api platform, which integrates pubmedbert-base-colbert's modeling effects, including api services, and provides a free online trial of pubmedbert-base-colbert, you can try pubmedbert-base-colbert online for free by clicking the link below.
NeuML pubmedbert-base-colbert online free url in huggingface.co:
pubmedbert-base-colbert is an open source model from GitHub that offers a free installation service, and any user can find pubmedbert-base-colbert on GitHub to install. At the same time, huggingface.co provides the effect of pubmedbert-base-colbert install, users can directly use pubmedbert-base-colbert installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
pubmedbert-base-colbert install url in huggingface.co: