⌕ search /

Anthropic Contextual Retrieval: GPU requirements

Anthropic's Contextual Retrieval at query time: embed the question, retrieve the top 150 chunks from embeddings and BM25, rerank them, pass the top 20 to the model.

GPUs10× H100 SXM5served together
$ / hour$34.76market price
$ / month$25,376running around the clock
First token3.94 starget 5.00 s
Load200 users, 10 % activethe design's default

Serving each module separately would take 11 GPUs — 1.1× more.

Open in Builder →

About this design

what is drawn and what is assumed

Anthropic's Contextual Retrieval at query time: embed the question, retrieve the top 150 chunks from embeddings and BM25, rerank them, pass the top 20 to the model. The article's worked example uses 800-token chunks with 100 tokens of model-written context each (written once at ingestion, not drawn); with reranking, contextual embeddings and contextual BM25 cut the top-20 retrieval failure rate by 67 % (5.7 % → 1.9 %). The article's embedders (Gemini Text 004, Voyage) and reranker (Cohere) are hosted: BGE-M3 and BGE-Reranker v2 M3 stand in, and the LLM is the site's default model — pick your own. Assumed here, not published: 300 tokens of question and prompt (18,300 prompt tokens = 20 × 900 + 300), 300 answer tokens, 200 users with 10 % active and a 5 s first-token target.

Pipeline

one row per module
Module Category Model or component GPUs on its own Time per call Grade
Embed query Embedding BGE-M3 (568M) 1 8 ms estimate
Hybrid search (embeddings + BM25), top 150 Vector search Vector search on CPU no GPU 20 ms
Rerank 150 → 20 Reranking BGE-Reranker v2 M3 (568M) 2 1.92 s estimate
Answer LLM LLM LLaMA 3.3 70B 8 9.39 s calibrated
Served separately: 11 · served together: 10

More users

same pipeline, same GPU
UsersGPUs$ / hourFirst token
100×0.5 10× H100 SXM5 $34.53 4.08 s
200×1 10× H100 SXM5 $34.53 3.94 s
400×2 19× H100 SXM5 $65.60 4.51 s
800×4 38× H100 SXM5 $131.20 4.51 s

On other GPUs

same pipeline, same load
GPUGPUs$ / hourFirst token
H100 SXM5 this design 10× H100 SXM5 $34.53 3.94 s
B200 SXM 6× B200 SXM $51.30 4.04 s
B300 SXM 6× B300 SXM $57.00 4.05 s
H200 NVL 23× H200 NVL $84.43 6.12 s
H200 SXM 10× H200 SXM $43.80 4.19 s
RTX PRO 6000 Blackwell Server Edition no answer: Answer LLM: Fits on 4 GPU (4×1), but the best single-stream latency here is TTFT 4597 ms > 1000 ms target. No card count fixes this — raise TTFT to ≥4597 ms or pick a faster GPU.

Related designs

RAG and document search

Frequently asked questions

How many GPUs does Anthropic Contextual Retrieval need?

10× H100 SXM5 for 200 users, 10 % active, with the modules sharing GPUs where they can. Serving each module separately would take 11 GPUs.

What does Anthropic Contextual Retrieval cost per hour?

$34.76 an hour ($25,376 a month) at market prices for 10× H100 SXM5. Estimates, not quotes.

What happens to Anthropic Contextual Retrieval with twice the users?

It needs 19× H100 SXM5 at $65.60 an hour, against 10× H100 SXM5 at the default load.

Sized by the same planner as the Builder, at the design's default load, GPU and models, with today's market GPU prices. How the Builder sizes a pipeline. Estimates, not quotes.

Prices are collected daily from each provider's public price list or API. Estimates, not quotes — always confirm on the provider's own page before committing.

How this works · How accurate it is