What is the carbon footprint of embeddings, reranking and moderation in a RAG pipeline?

Per-token and per-call factors for the supporting steps of a RAG pipeline, from SAEF dataset v3.5.0 (rows added in v3.4.0 and unchanged since). Estimates, training excluded.

Last updated

Part of the SOMA AI Emission Factors cluster.

What is the carbon footprint of embeddings, reranking and moderation?

SOMA AI's SAEF dataset (v3.5.0) estimates embedding one million input tokens at 0.57 Wh of facility energy and 0.17 g CO2e in eu-west-1 for a small encoder and 16 Wh and 4.9 g for an LLM-based embedder, which is 0.57 to 16 kWh for a billion tokens. Reranking is estimated at 29 to 480 Wh per 1,000 search units and moderation at 8.1 to 26 Wh per 1,000 calls.

These are estimates. Per item they are small next to the generation step they support, but at one rerank and one moderation call per answer they can add about half of the answer's energy, and an LLM-based reranker can exceed it, since reranking scores many documents per query. No provider publishes energy for these services, and the bands are wide on purpose, so the central value should always travel with its range.

What are the SAEF factors per million tokens and per 1,000 calls?

Facility Wh and g CO2e scaled to the units that billing and usage reports use: per million input tokens for embeddings, per 1,000 search units for reranking and per 1,000 calls for moderation. Each cell shows low / central / high. CO2e counts electricity, embodied hardware and data-centre construction, and leaves training out. Source: modality_factors.csv, SAEF v3.5.0.
Row and unitFacility Whg CO2e, eu-west-1g CO2e, us-east-1
Text embedding, E-small, per million input tokens0.090 / 0.57 / 520.027 / 0.17 / 160.029 / 0.18 / 17
Text embedding, E-large, per million input tokens1.9 / 16 / 4500.57 / 4.9 / 1400.61 / 5.2 / 150
Reranking, R-small, per 1,000 search units0.75 / 29 / 5800.23 / 8.7 / 1700.24 / 9.3 / 190
Reranking, R-large, per 1,000 search units9.4 / 480 / 23,0002.8 / 150 / 6,8003.0 / 160 / 7,300
Moderation, M-A, per 1,000 calls0.20 / 8.1 / 590.061 / 2.4 / 180.065 / 2.6 / 19
Moderation, M-B, per 1,000 calls0.34 / 26 / 1600.10 / 8.0 / 490.11 / 8.5 / 53
The dataset rows as published, per 1,000 tokens, per image, per search unit and per call. E-small, R-small and M-A are small-tier models by price, E-large, R-large and M-B are the conservative class for anything above or unknown. Each cell shows low / central / high. CO2e counts electricity, embodied hardware and data-centre construction, and leaves training out. Source: modality_factors.csv, SAEF v3.5.0.
Row and unitFacility Whg CO2e, eu-west-1g CO2e, us-east-1
Text embedding, small encoder (E-small), per 1,000 input tokens0.000090 / 0.00057 / 0.0520.000027 / 0.00017 / 0.0160.000029 / 0.00018 / 0.017
Text embedding, LLM-based (E-large), per 1,000 input tokens0.0019 / 0.016 / 0.450.00057 / 0.0049 / 0.140.00061 / 0.0052 / 0.15
Image embedding, small (E-small), per image0.000023 / 0.00015 / 0.00230.0000070 / 0.000044 / 0.000690.0000075 / 0.000047 / 0.00074
Image embedding, LLM-based (E-large), per image0.00048 / 0.016 / 0.450.00015 / 0.0049 / 0.140.00016 / 0.0052 / 0.15
Reranking, small cross-encoder (R-small), per 1,000 tokens scored0.00015 / 0.00096 / 0.0120.000045 / 0.00029 / 0.00350.000049 / 0.00031 / 0.0037
Reranking, small cross-encoder (R-small), per search unit0.00075 / 0.029 / 0.580.00023 / 0.0087 / 0.170.00024 / 0.0093 / 0.19
Reranking, LLM-based (R-large), per 1,000 tokens scored0.0019 / 0.016 / 0.450.00057 / 0.0049 / 0.140.00061 / 0.0052 / 0.15
Reranking, LLM-based (R-large), per search unit0.0094 / 0.48 / 230.0028 / 0.15 / 6.80.0030 / 0.16 / 7.3
Moderation, small (M-A), per 1,000 input tokens0.0096 / 0.016 / 0.0240.0029 / 0.0049 / 0.00720.0031 / 0.0052 / 0.0077
Moderation, small (M-A), per call0.00020 / 0.0081 / 0.0590.000061 / 0.0024 / 0.0180.000065 / 0.0026 / 0.019
Moderation, omni-class (M-B), per 1,000 input tokens0.016 / 0.053 / 0.0650.0049 / 0.016 / 0.0200.0052 / 0.017 / 0.021
Moderation, omni-class (M-B), per call0.00034 / 0.026 / 0.160.00010 / 0.0080 / 0.0490.00011 / 0.0085 / 0.053

Classes follow list price: a text embedder at USD 0.05 per million tokens or less is E-small, and anything above or unknown is E-large. Cohere Rerank 3.5 and Rerank 5 are small-tier by price, so they map to R-small. For reranking, every query and document pair is a separate forward pass. Cohere Rerank 3.5 bills search units, and Cohere Rerank 5 bills tokens, so use the matching row. Without token counts, assume 30,000 tokens per search unit.

How big is this in a RAG pipeline?

Illustrative workload, our own assumption and not a SAEF value: a knowledge base of 1,000,000 chunks of 500 tokens embedded once, then 100,000 questions a month, each embedded at 30 tokens, reranked as one search unit, checked with one moderation call and answered by one class B text exchange (one text chat exchange with a class B (mid-size) model, 928 input and 282 output tokens).

  • Embedding the knowledge base once. 0.29 kWh and 0.086 kg CO2e in eu-west-1 with E-small, or 8.1 kWh and 2.4 kg with E-large.
  • Query-time support. Embedding the questions with E-large, reranking with R-small and moderating with M-B is 5.6 kWh and 1.7 kg CO2e a month in eu-west-1.
  • The answers. 9.9 kWh and 3.0 kg CO2e a month for 100,000 class B text exchanges, counted on the same basis with training left out. The support steps add about 56% to that.
  • A large reranker. The same reranking with R-large is 48 kWh and 15 kg CO2e a month, about 4.9 times the answer step.

So the embedding is rarely the issue, and the reranker and the number of retrieved documents are what to look at. For the answer step, see the text query energy page.

What drives the range?

  • Serving conditions. The low value is an optimised batched run, MLPerf BERT-large at full load, and the high value is a batch-1 FP32 run from AI Energy Score. E-small spans 580 times.
  • Class. E-large is 28 times E-small per token, because an LLM-based embedder runs a large prefill.
  • Tokens per unit. A search unit is assumed to score 30,000 tokens and a moderation call 500, with ranges of 5,000 to 50,000 and 21 to 2,500. Log the real counts to narrow the band.
  • Images. An image embedding is assumed to be 257 tokens for E-small and 1,000 token equivalents for E-large.
  • Grid. eu-west-1 and us-east-1 differ by under 10% in these rows. Other regions follow the text tables.

How do I estimate my own usage?

  1. Take tokens from the export. OpenAI embeddings report prompt tokens, Bedrock Titan reports input token counts and Cohere reports billed input tokens. Where only characters are billed, use characters divided by 4, an assumption.
  2. Take search units for reranking. Bedrock and Cohere Rerank 3.5 bill search units. Cohere Rerank 5 bills tokens, so use the per-token row.
  3. Count moderation from logs. OpenAI moderation is free and absent from billing exports. Count calls from application logs, and use 500 tokens per call if text length is not logged.
  4. Pick the class. For embeddings, use the small row for models listed at USD 0.05 per million tokens or less and the large row otherwise. For reranking and moderation, use the classes named above.
  5. Multiply and keep the range. Multiply by the central, low and high values, report all three, and state that training is excluded.

What does this page not claim?

  • That these figures are measurements of a provider's service. They are SAEF estimates and the class of a closed model is an assumption.
  • That training is included. No training term is charged for any non-text model type.
  • That the example workload is typical. It is an illustration with stated assumptions.
  • That moderation is free of energy because the API is free of charge.

Where do the figures come from, and how should they be cited?

Dataset: AI Inference Emission and Resource Factors for Corporate GHG Inventories (SOMA AI Emission Factors, SAEF), Llopis-Garcia, G., SOMA AI, version 3.5.0, published 27 November 2026, Zenodo record 10.5281/zenodo.24596349, concept DOI 10.5281/zenodo.20443585 (resolves to the latest version). The rows used here are in modality_factors.csv and the method is in MODALITIES_METHOD.md, both in the deposit. Licence: SOMA AI Emission Factors Data Licence 1.0 (Non-Commercial).

The text method behind the comparison figures is published as Llopis-Garcia (2026), Sustainable Production and Consumption 70:320-347, doi:10.1016/j.spc.2026.11.003. The non-text rows come from the dataset method file above, not from that paper.

Energy inputs and billing facts used for these rows (ids as in modality_sources.csv):

Method, API and the full table: methodology, AI factors API, SAEF.

Short answers

How much carbon do embeddings produce per million tokens?
SOMA AI's SAEF dataset (v3.5.0) estimates 0.57 Wh of facility energy and 0.17 g CO2e in eu-west-1 per million input tokens for a small encoder embedder (E-small, range 0.090 to 52 Wh), and 16 Wh and 4.9 g for an LLM-based embedder (E-large, range 1.9 to 450 Wh). Training is excluded.
How much energy does reranking use?
Per 1,000 search units, a small cross-encoder reranker (R-small) is estimated at 29 Wh and 8.7 g CO2e in eu-west-1, and an LLM-based reranker (R-large) at 480 Wh and 150 g. The R-large range spans a factor of 2,400 from low to high. A search unit is one query with up to 100 documents, so it is usually the most visible of the three steps.
Does moderation count if the API is free?
Yes. OpenAI moderation is free and does not appear in billing exports, but it still uses energy, so count the calls from application logs. SAEF estimates 26 Wh and 8.0 g CO2e in eu-west-1 per 1,000 calls to an omni-class moderation model (M-B), and 8.1 Wh per 1,000 calls to a small one (M-A), at an assumed 500 tokens per call.
Are embeddings material in a RAG pipeline?
Usually not. In the illustrative workload on this page, embedding 500 million tokens once with an LLM-based embedder is 8.1 kWh, and the monthly query-time embedding, small-model reranking and moderation add about 56% to the energy of the answer step. A large LLM-based reranker is the exception, at about 4.9 times the answer step.
Why are the ranges so wide?
For encoder-type workloads the evidence spans more than two orders of magnitude, from optimised batched serving to batch-1 FP32 runs. The E-small range is 580 times from low to high. The central value is placed by a stated rule, so report the range with it.

Keep reading