FlashRAG logo

FlashRAG

RUC-NLPIR/FlashRAG

A Python toolkit for efficient RAG research

GraphCanon updated 3d · GitHub synced 3d · 31 views this month

3.5k stars311 forksLast push 1w Python MIT

Decision brief

FlashRAG caters to Python-based RAG research with streamlined installation options and flexibility in optional dependency choices for improved performance.

Good fit when

  • When you need specialized tools for retrieval-augmented generation (RAG) within large-language-model environments, offering a direct pip install option simplifies quick integration into your projects.
  • If the project requires the use of vllm for speed improvements or sentence-transformers and pyserini for specific functionalities like bm25, FlashRAG offers distinct dependency installation commands.

Avoid when

  • Avoid using FlashRAG if you do not have Python version 3.10+, as the toolkit requires this minimum Python version.
  • Do not use FlashRAG when your research or project involves extensive use of faiss, because it needs to be installed via conda due to pip installation incompatibilities.
Requirements:
Python version greater than or equal to 3.10; Optional dependencies include vllm, sentence-transformers, pyserini. Faiss installation requires conda.

Observed Jul 14, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Active (8d since push)
As of 3d
Provenance
Not a fork · Organization account
As of 3d
Security (OSV)
59 low (59 low)
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install FlashRAG
PyPI

How it fits your stack(9)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

FlashRAG provides tools and benchmarks for retrieval-augmented generation with large language models.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Aug 18, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 18, 2026)

Or you can clone it from Github and install (requires Python 3.10+):
Source link

Tags

README

:wrench: Installation

To get started with FlashRAG, you can simply install it with pip:

pip install flashrag-dev --pre

Or you can clone it from Github and install (requires Python 3.10+):

git clone https://github.com/RUC-NLPIR/FlashRAG.git
cd FlashRAG
pip install -e .

If you want to use vllm, sentence-transformers or pyserini, you can install the optional dependencies:


---

# Install all extra dependencies
pip install flashrag-dev[full]

---

# Install vllm for faster speed
pip install vllm>=0.4.1

---

# Install sentence-transformers
pip install sentence-transformers

---

# Install pyserini for bm25
pip install pyserini

Due to the incompatibility when installing faiss using pip, it is necessary to use the following conda command for installation.


---

## :bookmark: License

FlashRAG is licensed under the [<u>MIT License</u>](./LICENSE).

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.