The training dataset was generated using a random sample of
PubMed
title-abstract pairs along with similar title pairs.
PubMedBERT SPLADE produces higher quality sparse embeddings than generalized models for medical literature. Further fine-tuning for a medical subdomain will result in even better performance.
Usage (txtai)
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 8.7.0+ is required for sparse vector scoring support
import txtai
embeddings = txtai.Embeddings(
sparse="neuml/pubmedbert-base-splade",
content=True
)
embeddings.index(documents())
# Run a query
embeddings.search("query to run")
from sentence_transformers import SpladeEncoder
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SpladeEncoder("neuml/pubmedbert-base-splade")
embeddings = model.encode(sentences)
print(embeddings)
Evaluation Results
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.
pubmedbert-base-splade huggingface.co is an AI model on huggingface.co that provides pubmedbert-base-splade's model effect (), which can be used instantly with this NeuML pubmedbert-base-splade model. huggingface.co supports a free trial of the pubmedbert-base-splade model, and also provides paid use of the pubmedbert-base-splade. Support call pubmedbert-base-splade model through api, including Node.js, Python, http.
pubmedbert-base-splade huggingface.co is an online trial and call api platform, which integrates pubmedbert-base-splade's modeling effects, including api services, and provides a free online trial of pubmedbert-base-splade, you can try pubmedbert-base-splade online for free by clicking the link below.
NeuML pubmedbert-base-splade online free url in huggingface.co:
pubmedbert-base-splade is an open source model from GitHub that offers a free installation service, and any user can find pubmedbert-base-splade on GitHub to install. At the same time, huggingface.co provides the effect of pubmedbert-base-splade install, users can directly use pubmedbert-base-splade installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
pubmedbert-base-splade install url in huggingface.co: