# Praxis-RAG [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Guan0923/Praxis-RAG  
**GitHub Stars:** 7  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/praxis-rag

## Description
Self-hosted document retrieval with citable evidence for AI assistants and apps. Console, REST API, and MCP.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Guan0923/Praxis-RAG), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/Guan0923/Praxis-RAG.git
```

2. Run:

```sh
cd Praxis-RAG
```

## Documentation

## What Praxis-RAG does

Praxis-RAG is a self-hosted knowledge base for AI assistants and business applications. Its main purpose is document retrieval that preserves enough context to check where an answer came from. Results include an original text fragment, a source reference, and a chunk identifier, allowing an application or reviewer to trace a retrieved passage back to its indexed material.

The project exposes the same retrieval service through three entry points: a web Console, a REST API, and MCP. The Console can be used to import documents and inspect search results. The repository includes an X7 maintenance manual example, including a demonstration search for the E03 fault code and its corresponding manual section.

## How it works

The Go retrieval service coordinates document ingestion and search. In the full topology, Qdrant stores the searchable index, while MySQL records ingestion tasks and their status. Kafka carries change notifications from MySQL through Debezium CDC to a document worker. That worker parses documents, divides them into chunks, creates document vectors through a model API, and writes the indexed content to Qdrant.

Search is synchronous at the service layer. The system supports hybrid retrieval, combining BM25 and dense retrieval with reciprocal rank fusion (RRF). A model API can also provide vectorization and optional reranking. Retrieved evidence is returned with its source information rather than only as an untraceable generated answer.

A lightweight debug command can run the bundled example search without starting the database services or configuring a model API key. It uses mock mode to verify the example path and return sample results.

## Setup and configuration

The quick-start path requires Git and Go 1.27 or newer. Clone the repository, enter its directory, and run the debug command with a query and result limit:

```sh
git clone https://github.com/Guan0923/Praxis-RAG.git
cd Praxis-RAG
go run ./cmd/rag-mcp-debug --query "RRF 怎么融合 BM25 和 Dense？" --limit 2
```

A successful example run reports mock mode and two results. Each result contains fields such as `Text`, `Source`, and `ChunkID`. This path downloads Go dependencies but does not require a database or model API key.

The complete deployment uses the service, Qdrant, MySQL, Kafka, Debezium CDC, a document worker, and a model API. Documents can then be imported and searched through the Console, REST API, or MCP interface.

## Tools and capabilities

- Retrieve document passages through Console, REST API, or MCP.
- Import documents for processing and indexing.
- Combine BM25 and dense retrieval with RRF-based fusion.
- Return source references, original text excerpts, and chunk IDs with results.
- Use optional model-based reranking.
- Run bundled mock searches for local verification.

The documented default search settings return up to five results from ten candidates. Requests may use up to 100 candidates and return up to ten results. Batch uploads accept up to ten files, with a 10 MiB limit per file.

## Limitations and notes

The service defines a 120-second search timeout budget. Evidence artifacts are retained for one hour by default, so applications that need longer-lived references should account for that retention window. The complete architecture has more operational dependencies than the mock quick start, including Qdrant, MySQL, Kafka, Debezium CDC, a worker, and a model API.

The example command validates the bundled retrieval flow in mock mode; it is not the same as deploying the full ingestion and search stack. Production setup therefore requires following the service topology and configuring the supporting components used by the selected deployment.

_Full upstream README: https://allmcps.com/mcp/praxis-rag/readme_

