NeuML / txtai-wikipedia

huggingface.co
Total runs: 307
24-hour runs: 0
7-day runs: 15
30-day runs: 15
Model's Last Updated: April 20 2026
sentence-similarity

Introduction of txtai-wikipedia

Model Details of txtai-wikipedia

Wikipedia txtai embeddings index

This is a txtai embeddings index for the English edition of Wikipedia .

This index is built from the Wikipedia January 2024 dataset . Only the first paragraph of the lead section from each article is included in the index. This is similar to an abstract of the article.

It also uses Wikipedia Page Views data to add a percentile field. The percentile field can be used to only match commonly visited pages.

txtai must be installed to use this model.

Example

Version 5.4 added support for loading embeddings indexes from the Hugging Face Hub. See the example below.

from txtai.embeddings import Embeddings

# Load the index from the HF Hub
embeddings = Embeddings()
embeddings.load(provider="huggingface-hub", container="neuml/txtai-wikipedia")

# Run a search
embeddings.search("Roman Empire")

# Run a search matching only the Top 1% of articles
embeddings.search("""
   SELECT id, text, score, percentile FROM txtai WHERE similar('Boston') AND
   percentile >= 0.99
""")
Use Cases

An embeddings index generated by txtai is a fully encapsulated index format. It doesn't require a database server or dependencies outside of the Python install.

The Wikipedia index works well as a fact-based context source for retrieval augmented generation (RAG). In other words, search results from this model can be passed to LLM prompts as the context in which to answer questions.

See this article for additional examples on how to use this model.

Evaluation Results

Performance was evaluated using the NDCG@10 score with a custom question-answer evaluation set . Results are shown below.

Model NDCG@10 MAP@10
bge-base-en-v1.5 0.6320 0.5485
e5-base 0.7021 0.6517
gte-base 0.6775 0.6350

e5-base is the best performing model for the evaluation set. This highlights the importance of testing models as e5-base is far from the leading model on the MTEB leaderboard . Benchmark datasets are only a guide.

Build the index

The following steps show how to build this index. These scripts are using the latest data available as of 2024-01-01, update as appropriate.

  • Install required build dependencies
pip install txtchat mwparserfromhell datasets
  • Download and build pageviews database
mkdir -p pageviews/data
wget -P pageviews/data https://dumps.wikimedia.org/other/pageview_complete/monthly/2023/2023-12/pageviews-202312-user.bz2
python -m txtchat.data.wikipedia.views -p en.wikipedia -v pageviews
  • Build Wikipedia dataset
from datasets import load_dataset

# Data dump date from https://dumps.wikimedia.org/enwiki/
date = "20240101"

# Build and save dataset
ds = load_dataset("neuml/wikipedia", language="en", date=date)
ds.save_to_disk(f"wikipedia-{date}")
  • Build txtai-wikipedia index
python -m txtchat.data.wikipedia.index \
       -d wikipedia-20240101 \
       -o txtai-wikipedia \
       -v pageviews/pageviews.sqlite

Runs of NeuML txtai-wikipedia on huggingface.co

307
Total runs
0
24-hour runs
1
3-day runs
15
7-day runs
15
30-day runs

More Information About txtai-wikipedia huggingface.co Model

More txtai-wikipedia license Visit here:

https://choosealicense.com/licenses/gfdl

txtai-wikipedia huggingface.co

txtai-wikipedia huggingface.co is an AI model on huggingface.co that provides txtai-wikipedia's model effect (), which can be used instantly with this NeuML txtai-wikipedia model. huggingface.co supports a free trial of the txtai-wikipedia model, and also provides paid use of the txtai-wikipedia. Support call txtai-wikipedia model through api, including Node.js, Python, http.

txtai-wikipedia huggingface.co Url

https://huggingface.co/NeuML/txtai-wikipedia

NeuML txtai-wikipedia online free

txtai-wikipedia huggingface.co is an online trial and call api platform, which integrates txtai-wikipedia's modeling effects, including api services, and provides a free online trial of txtai-wikipedia, you can try txtai-wikipedia online for free by clicking the link below.

NeuML txtai-wikipedia online free url in huggingface.co:

https://huggingface.co/NeuML/txtai-wikipedia

txtai-wikipedia install

txtai-wikipedia is an open source model from GitHub that offers a free installation service, and any user can find txtai-wikipedia on GitHub to install. At the same time, huggingface.co provides the effect of txtai-wikipedia install, users can directly use txtai-wikipedia installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

txtai-wikipedia install url in huggingface.co:

https://huggingface.co/NeuML/txtai-wikipedia

Url of txtai-wikipedia

txtai-wikipedia huggingface.co Url

Provider of txtai-wikipedia huggingface.co

NeuML
ORGANIZATIONS

Other API from NeuML

huggingface.co

Total runs: 1.9K
Run Growth: 1.6K
Growth Rate: 84.98%
Updated:January 27 2025
huggingface.co

Total runs: 1.1K
Run Growth: -170
Growth Rate: -16.18%
Updated:January 27 2025
huggingface.co

Total runs: 1.0K
Run Growth: 186
Growth Rate: 17.94%
Updated:February 21 2023
huggingface.co

Total runs: 853
Run Growth: 250
Growth Rate: 29.31%
Updated:February 21 2023
huggingface.co

Total runs: 521
Run Growth: -99.9K
Growth Rate: -19182.34%
Updated:January 27 2025
huggingface.co

Total runs: 285
Run Growth: 98
Growth Rate: 34.39%
Updated:January 27 2025
huggingface.co

Total runs: 186
Run Growth: 110
Growth Rate: 59.14%
Updated:April 21 2026
huggingface.co

Total runs: 31
Run Growth: 14
Growth Rate: 45.16%
Updated:October 10 2025
huggingface.co

Total runs: 15
Run Growth: -2
Growth Rate: -13.33%
Updated:November 23 2024
huggingface.co

Total runs: 8
Run Growth: -75
Growth Rate: -937.50%
Updated:April 13 2026
huggingface.co

Total runs: 8
Run Growth: 2
Growth Rate: 25.00%
Updated:July 21 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 11 2025