Downloads · 30 days
1
7% of all-time downloads
FlexRAG/enwiki_2018_atlas
enwiki_2018_atlas is a machine learning model from FlexRAG. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for FlexRAG.
This is a FlexRetriever created with the FlexRAG library (version 0.3.0).
Downloads · 30 days
1
7% of all-time downloads
All-time downloads
14
Public
Repo size
49.5 GB
Likes
0
Public
Click a slice to open those files.
.mdb28.7 GB · 57%
From the Hugging Face model README
This is a FlexRetriever created with the FlexRAG library (version 0.3.0).
The enwiki_2018_atlas retriever is a FlexRetriever that provides access to the English Wikipedia corpus from December 2018. It is designed for information retrieval tasks, allowing users to search and retrieve relevant documents based on their queries.
The corpus of this retriever was created by the Atlas project and the index was built using the FlexRAG library.
| Corpus Attribute | Value |
|---|---|
| Language | English |
| Domain | Wikipedia |
| Saved Fields | title, section, text |
| Size | 30.4M (26.9M text, 2.7M infobox) |
| Dump Date | Dec 2018 |
| Provideer | Atlas |
| License | CC-BY-SA 3.0 |
| Index Attribute | Value |
|---|---|
| Index Name | bm25 |
| Index Type | Sparse |
| Index Method | Lucene |
| Indexed Fields | title, section, text (concat) |
| Preprocessing | LengthFilter(min_char=10, max_char=4096) |
| Provideer | FlexRAG |
| License | CC-BY-SA 3.0 |
| Index Attribute | Value |
|---|---|
| Index Name | contriever |
| Index Type | Dense |
| Index Method | IVFPQ |
| Indexed Fields | title, section, text (concat) |
| Query Encoder | facebook/contriever-msmarco |
| Passage Encoder | facebook/contriever-msmarco |
| Preprocessing | LengthFilter(min_char=10, max_char=4096) |
| Provideer | FlexRAG |
| License | CC-BY-SA 3.0 |
You can install the FlexRAG library with pip:
pip install flexrag faiss-cpu
FlexRAG retrieverYou can use this retriever for information retrieval tasks. Here is an example:
from flexrag.retriever import LocalRetriever
# Load the retriever from the HuggingFace Hub
retriever = LocalRetriever.load_from_hub("FlexRAG/enwiki_2018_atlas")
# You can retrieve relevant documents now
results = retriever.search("Who is Bruce Wayne?")
You can run the GUI application of the RAG assistant with this retriever. Here is an example:
python -m flexrag.entrypoints.run_interactive \
assistant_type=modular \
modular_config.used_fields=[title,text] \
modular_config.retriever_type="FlexRAG/enwiki_2018_atlas" \
modular_config.response_type=original \
modular_config.generator_type=openai \
modular_config.openai_config.model_name='gpt-4o-mini' \
modular_config.openai_config.api_key=$OPENAI_KEY \
modular_config.do_sample=False
As the corpus is based on the CC-BY-SA 3.0 license, the retriever is also licensed under the same license.
FlexRAG Related Links: