Pika4028/low-resource-rag-indexes
Low-Resource RAG: Wikipedia FAISS Indexes (BGE-M3) FAISS indexes over Wikipedia 2023 passages for four languages, embedded with BAAI/bge-m3. Source corpus: CohereLabs/wikipedia-2023-11-embed-multilingual-v3. Each language folder has two files aligned row-by-row: index.faiss — FAISS IndexFlatIP, dim=1024, L2-normalized BGE-M3 vectors dataset/ — Arrow dataset with _id, title, text per passage Languages Language Code Passages Size Hindi hi TBD 2.6G… See the full description on the dataset page: https://huggingface.co/datasets/Pika4028/low-resource-rag-indexes.
Low-Resource RAG: Wikipedia FAISS Indexes (BGE-M3)
FAISS indexes over Wikipedia 2023 passages for four languages, embedded with BAAI/bge-m3. Source corpus: CohereLabs/wikipedia-2023-11-embed-multilingual-v3.
Each language folder has two files aligned row-by-row:
index.faiss— FAISSIndexFlatIP, dim=1024, L2-normalized BGE-M3 vectorsdataset/— Arrow dataset with_id,title,textper passage
Languages
Usage
import faiss
from datasets import load_from_disk
from FlagEmbedding import BGEM3FlagModel
LANG = "hi" # hi | mr | ne | mai
INDEX_DIR = "/path/to/indexes"
index = faiss.read_index(f"{INDEX_DIR}/{LANG}/index.faiss")
dataset = load_from_disk(f"{INDEX_DIR}/{LANG}/dataset")
model = BGEM3FlagModel("BAAI/bge-m3", use_fp16=True)
query_vec = model.encode(["your query"])["dense_vecs"]
scores, indices = index.search(query_vec, k=10)
results = dataset.select(indices[0])Download
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="Pika4028/low-resource-rag-indexes",
repo_type="dataset",
local_dir="/path/to/indexes",
allow_patterns="hi/*", # omit for all languages
)