PubMedBERT Embeddings (NeuML)

Popular
huggingface
Embeddings

Sentence-transformers model fine-tuned from Microsoft PubMedBERT on PubMed title-abstract pairs by the NeuML team. Produces 768-dim sentence embeddings tuned for biomedical semantic search and similarity, and is the embedding backbone behind the paperai and txtai medical search tools.

Embed with PubMedBERT Embeddings (NeuML)
Vectorize text and preview the first 8 dimensions as a bar chart.
Sign in to try this model with €5 free credits.
Sign in
Outputs a high-dimensional vector you can plug into RAG or search.
Vector preview appears here.
TL;DR·Last updated June 24, 2026

PubMedBERT Embeddings (NeuML) is embeddings AI model from huggingface, priced at €0.000 per 1M input tokens with a 512 tokens context window.

About this model

This model takes Microsoft's PubMedBERT, which was pretrained from scratch on PubMed abstracts and PMC full text, and fine-tunes it with a sentence-transformers objective on PubMed title-abstract pairs. The result maps biomedical sentences and short passages into a 768-dim space where cosine similarity reflects clinical and biomedical relatedness. It is widely used for retrieval over medical literature. Served via the Hugging Face feature-extraction pipeline; mean-pool the token outputs to obtain the sentence embedding.
Try PubMedBERT Embeddings (NeuML)
Sign in to generate — 50 free credits on sign-up

Pricing

Price per Generation
Per generation€1.00

API Integration

Use our OpenAI-compatible API to integrate PubMedBERT Embeddings (NeuML) into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const vectors = await rw.run("pubmedbert-base-embeddings", "Hello world", { type: "embed" });
console.log(vectors[0].length); // embedding dimensions

// Or use the embed() method for full control
const res = await rw.embed("pubmedbert-base-embeddings", ["Hello", "World"]);
for (const item of res.data) {
  console.log(item.embedding.length);
}
Specifications
Price
€1.00
Context window
512 tokens
Developer
huggingface
Category
Embeddings
Supported Formats
text
Tags
science
embedding
research
huggingface
pubmedbert
biomedical
medical
sentence-transformers

Frequently asked questions

Related Models

View all Embeddings

Start using PubMedBERT Embeddings (NeuML) today

Get started with free credits. No credit card required. Access PubMedBERT Embeddings (NeuML) and 100+ other models through a single API.