# Embedding Library Statistics (November 2026)

> Statistics for 8 open-source embedding libraries: sentence-transformers, BGE, FastEmbed, Model2Vec and others. GitHub stars, forks, licenses and last-month PyPI and npm downloads. Collected 2026-11-30.

Source: https://aiagentmemory.org/articles/embedding-library-statistics/ · Updated 2026-11-30 · aiagentmemory.org


Embedding libraries turn text into vectors. An agent memory system uses those vectors to find the memories that match a new question. This page counts GitHub stars and last-month package downloads for 8 local embedding libraries. The numbers were collected by aiagentmemory.org on 2026-11-30 at 16:07 UTC. We did not run any embedding model ourselves.

For the memory projects themselves, see [agent memory statistics](/articles/agent-memory-statistics/). For the databases that store the vectors, see [vector database statistics](/articles/vector-database-statistics/). For the local model runners, see [local LLM statistics](/articles/local-llm-statistics/).

## Embedding library GitHub and package statistics

**Table 1. Statistics for 8 embedding libraries, collected 2026-11-30 from the GitHub REST API, pypistats.org and the npm registry.** Sorted by stars. Each row is a library you install to run embedding models on your own machine. Hosted embedding APIs (Voyage, Cohere, Nomic) are left out, because their packages are API clients, not libraries. The PyPI and npm columns are last-month downloads for the package named in the notes below.

| # | Project | Repository | Stars | Forks | Created | Last push | License | PyPI/month | npm/month |
|---|---|---|---|---|---|---|---|---|---|
| 1 | sentence-transformers | huggingface/sentence-transformers | 19,317 | 3,051 | 2019-07-24 | 2026-11-30 | Apache-2.0 | 21,867,240 | - |
| 2 | Transformers.js | huggingface/transformers.js | 16,459 | 1,252 | 2023-02-13 | 2026-11-30 | Apache-2.0 | - | 19,740,768 |
| 3 | txtai | neuml/txtai | 13,752 | 1,088 | 2020-08-09 | 2026-11-30 | Apache-2.0 | 12,098 | - |
| 4 | FlagEmbedding (BGE) | FlagOpen/FlagEmbedding | 12,374 | 955 | 2023-08-02 | 2026-10-27 | MIT | 471,629 | - |
| 5 | llama-cpp-python | abetlen/llama-cpp-python | 10,703 | 1,494 | 2023-03-23 | 2026-11-23 | MIT | 598,032 | - |
| 6 | FastEmbed | qdrant/fastembed | 3,315 | 320 | 2023-07-14 | 2026-11-30 | Apache-2.0 | 8,289,875 | 444,516 |
| 7 | Infinity | michaelfeil/infinity | 2,993 | 223 | 2023-10-11 | 2026-11-12 | MIT | 5,437 | - |
| 8 | Model2Vec | MinishLab/model2vec | 2,290 | 130 | 2024-07-18 | 2026-11-27 | MIT | 1,503,694 | - |

Notes on the packages counted:

- **sentence-transformers** row: the PyPI package `sentence-transformers`. The repository moved from UKPLab to huggingface; the count follows the current name.
- **FlagEmbedding (BGE)** row: the PyPI package `FlagEmbedding`. BGE is the model family from the BAAI research project; this repository is its toolkit.
- **Transformers.js** row: the npm package `@huggingface/transformers`. It has no PyPI package.
- **llama-cpp-python** row: a Python binding by a third-party developer (abetlen), not by the llama.cpp project. Read its count as Python use of llama.cpp.
- **Infinity** row: the PyPI package `infinity-emb`. Its stars are high compared with its PyPI count; we report what the API returned and did not check it further.
- **txtai** row: the PyPI package `txtai`. Same note: 13,752 stars, 12,098 PyPI downloads last month, as returned.

## What the numbers show

- **sentence-transformers leads on stars and on PyPI.** It has the most stars (19,317) and the most PyPI downloads (21.9 million last month). It is the library most people reach for first when they want a Python embedding model.
- **FastEmbed is the second PyPI package.** Its 8.3 million downloads are far above the other Python-first libraries in the table, with a much smaller star count.
- **Transformers.js is the only JavaScript row, and it has the most npm downloads in the table.** Its 19.7 million npm downloads last month are for `@huggingface/transformers`, which runs models in JavaScript and Node.
- **Star counts and downloads do not line up.** txtai and Infinity have many stars but small PyPI counts. Model2Vec has fewer stars than txtai but more PyPI downloads than txtai. Stars measure interest; downloads measure installs, including CI and dependency installs.

Download counts are not user counts. Monthly counts swing from one month to the next, so read a change of a few tens of percent as a signal, not a trend.

## Memory: where Hindsight fits

Hindsight is not an embedding library. It is an open-source memory server, MIT licensed, with the full server included ([README](https://github.com/vectorize-io/hindsight)). It uses embeddings as one of its retrieval paths, so the embedding setting matters for recall quality.

- **Its default is a BGE model, and it is English-only.** For self-hosted installs the default embeddings provider is `local`, with the model `BAAI/bge-small-en-v1.5`. The Hindsight docs say this model is English-only and recommend `BAAI/bge-m3` for other languages ([multilingual docs](https://github.com/vectorize-io/hindsight/blob/main/hindsight-docs/docs/developer/multilingual.mdx), checked 2026-11-30). If your memories are in other languages, the docs point to the multilingual model instead.
- **Embeddings are one of four retrieval paths.** Hindsight's recall runs vector similarity and BM25 keyword matching, merges the results with reciprocal rank fusion, and reranks them with a cross-encoder ([README](https://github.com/vectorize-io/hindsight)). A better embedding model helps the vector path only; keyword and graph matches still run.
- **Hindsight also sells a hosted embedding model.** The Hindsight Models post (2026-11-03) describes its own embedding model, hosted on Hindsight Inference. This page does not include its price or speed.
- **The limit: embeddings are only part of the cost.** Every write calls an LLM to extract facts, so the LLM you choose affects speed and cost more than the embedding library does. We have no measured speed figures for Hindsight with any of these libraries, so none are quoted here.

If you build your own memory layer, pick the library that matches your language: sentence-transformers or FastEmbed for Python, Transformers.js for JavaScript.

## Methodology

**When.** All numbers were collected on 2026-11-30, starting at 16:07 UTC, by aiagentmemory.org with the same script used for [agent memory statistics](/articles/agent-memory-statistics/).

**Which APIs.**

1. **GitHub:** `GET https://api.github.com/repos/{owner}/{repo}`. Fields used: `stargazers_count`, `forks_count`, `created_at`, `pushed_at`, `license.spdx_id`.
2. **PyPI:** `GET https://pypistats.org/api/packages/{package}/recent`, last-month total.
3. **npm:** `GET https://api.npmjs.org/downloads/point/last-month/{package}`, last-month total.

**Which packages.** Each repository and package name was checked against the registry before we counted it. Package names are the ones each project publishes; the notes above say which one each count is.

**What's excluded.** Hosted embedding APIs (Voyage, Cohere, Nomic) because their packages are API clients, not libraries. Model weights on Hugging Face and the model families (BGE, MiniLM, E5) are not counted. We did not measure the speed or quality of any model or library.

**Not yet tracked.** The GitHub numbers are one snapshot. We will re-run the list in two weeks and add a dated update.


## FAQ

### Which embedding library has the most GitHub stars?

On 2026-11-30, sentence-transformers had the most GitHub stars of the 8 embedding libraries we checked (19,317), followed by Transformers.js (16,459) and txtai (13,752). Counts come from the GitHub REST API, collected by aiagentmemory.org.

### Which embedding package is downloaded the most from PyPI?

The `sentence-transformers` package had 21,867,240 PyPI downloads in the last month on 2026-11-30, the most of the packages we checked. FastEmbed's `fastembed` package was second with 8,289,875. Download counts include CI runs and dependency installs, so they are not user counts.

### Does Hindsight use an embedding model?

Yes. Self-hosted Hindsight uses the `local` embeddings provider with the model BAAI/bge-small-en-v1.5 by default. That model is English-only; Hindsight's multilingual docs recommend BAAI/bge-m3 for other languages. Hindsight is a memory server, so it is not a row in this table.

