Scan your whole stack
From OX Research Newsroom
Are you using fusion-rag?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.8.46
fusion-rag was last scanned on 25 Nov 2026 at version 0.8.46. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.8.46 LATEST | 25 Nov 2026 | No rules fired |
| 0.8.45 | 17 Nov 2026 | No rules fired |
| 0.8.44 | 17 Nov 2026 | No rules fired |
| 0.8.42 | 14 Nov 2026 | Not shown |
| 0.8.41 | 14 Nov 2026 | Not shown |
Findings for v0.8.46. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.8.46; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
doc_id: fusion-rag/readme product: fusion-rag class: platform entry: service doc_type: readme title: {zh: "Fusion-RAG 离线向量知识库后端", en: "Fusion-RAG Offline Vector Knowledge Base Backend"} audience: engineer status: draft version: 0.8.21 updated: 2026-11-07 owner: "@dahai" source_of_truth:
Apple Silicon Native Offline Vector Knowledge Base Backend
Local vector knowledge base service for the Fusion-MLX ecosystem — offline by default, no data leaves your device unless you explicitly opt into the cloud embedding fallback (FUSION_RAG_FALLBACK_URL, empty by default).
Quick Start · API Reference · Architecture · Documentation
| Feature | Fusion-RAG | Dify RAG | LangChain RAG | Claude RAG |
|---|---|---|---|---|
| MLX native | ✅ fusion-mlx API | ❌ Ollama/Cloud | ❌ Cloud API | ❌ Cloud |
| Apple Silicon optimized | ✅ LanceDB + MLX | ❌ | ❌ | ❌ |
| Multi-KB isolation | ✅ | ✅ | ❌ | ❌ |
| BM25 + Vector hybrid | ✅ Okapi BM25 + RRF | ❌ | ❌ | ❌ |
| Contextual Retrieval | ✅ Anthropic-style | ❌ | ❌ | ✅ |
| MCP Server | ✅ Claude/Cursor native | ❌ | ❌ | ❌ |
| GraphRAG | ✅ Entity-relation graph (/graph/* routes, experimental) |
❌ | ❌ | ❌ |
| Code AST chunking | ✅ Python AST-aware | ❌ | ❌ | ❌ |
| Version snapshots | ✅ Hard-link snapshots | ❌ | ❌ | ❌ |
| Incremental sync | ✅ MD5 + mtime detection | ❌ | ❌ | ❌ |
| Search templates | ✅ Preset + custom | ❌ | ❌ | ❌ |
| Audit logging | ✅ Full search audit trail | ❌ | ❌ | ❌ |
| Fine-grained permissions | ✅ ACL with role inheritance | ❌ | ❌ | ❌ |
| Cloud embed fallback | ✅ Auto-fallback on local fail | ❌ | ✅ | ✅ |
| Git repo indexing | ✅ Clone + .gitignore aware | ❌ | ❌ | ❌ |
| Bench API | ✅ Latency benchmarks | ❌ | ❌ | ❌ |
| Distributed storage | ✅ StoreBackend abstraction | ❌ | ❌ | ❌ |
| Local offline | ✅ Offline by default | ⚠️ Partial | ❌ | ❌ |
| Zero API cost | ✅ | ❌ | ❌ | ❌ |
One sentence: Fusion-RAG is a unified local vector knowledge base backend for the Fusion-MLX ecosystem — all Embedding goes through fusion-mlx HTTP API, no direct MLX imports.
localhost:11432From PyPI (after the first tagged release is published):
pip install fusion-rag
# optional extras:
pip install "fusion-rag[qdrant]" # Qdrant vector backend
From source (development):
git clone https://github.com/dahai80/fusion-rag.git
cd fusion-rag
pip install -e ".[test]"
./start.sh start
# Fusion-RAG running on http://127.0.0.1:11436
import asyncio
from fusion_rag import KnowledgeBase, DocumentParser, Chunker
from fusion_rag.embed.client import EmbeddingClient
from fusion_rag.store.vector_store import VectorStore
async def main():
# 1. Parse a document
parser = DocumentParser()
result = await parser.parse("README.md")
print(f"Parsed: {result.file_name} ({result.chars} chars)")
# 2. Chunk the text
chunker = Chunker(strategy="semantic")
chunks = await chunker.chunk(result)
print(f"Chunks: {len(chunks)}")
# 3. Embed via fusion-mlx
embed = EmbeddingClient(model="BGE-M3")
vectors = await embed.embed_batch([c.text for c in chunks])
print(f"Vectors: {len(vectors)}")
asyncio.run(main())
Fusion-RAG provides a REST API at /kb/* for knowledge base operations.
| Method | Endpoint | Description |
|---|---|---|
| GET | /kb/bases |
List all knowledge bases |
| POST | /kb/bases |
Create a knowledge base |
| GET | /kb/bases/{id} |
Get knowledge base details |
| DELETE | /kb/bases/{id} |
Delete a knowledge base |
| GET | /kb/bases/{id}/stats |
Get KB statistics |
| Method | Endpoint | Description |
|---|---|---|
| POST | /kb/bases/{id}/documents |
Upload and index a document |
| POST | /kb/bases/{id}/documents/batch |
Batch upload multiple documents |
| POST | /kb/bases/{id}/documents/ingest |
Ingest inline content: text-ish types (text/markdown/html/csv) index directly; pdf/docx/epub treat content as base64-encoded binary and run the full parse pipeline (incl. the scanned-PDF OCR path) — invalid base64 returns 400 (issue #90) |
| GET | /kb/bases/{id}/documents |
List all documents in a KB |
| PATCH | /kb/bases/{id}/documents/{doc_id} |
Patch document lifecycle metadata (status: active/deprecated, superseded_by) — issue #86 |
| DELETE | /kb/bases/{id}/documents/{doc_id} |
Delete a document and its chunks |
| PUT | /kb/bases/{id}/documents/{doc_id} |
Replace a document (re-index) |
| GET | /kb/bases/{id}/documents/{doc_id}/status |
Get document indexing status |
| POST | /kb/bases/{id}/scan |
Scan directory and index all files |
| POST | /kb/bases/{id}/watch |
Watch files for changes |
| POST | /kb/bases/{id}/unwatch |
Stop watching files |
| GET | /kb/bases/{id}/watch/status |
Get watch status |
| Method | Endpoint | Description |
|---|---|---|
| POST | /kb/bases/{id}/search |
Semantic search (hybrid, rerank, templates, status_filter) |
| POST | /kb/bases/{id}/ask |
RAG Q&A (model, hybrid, rerank, folder_prefix, status_filter, citations) |
| POST | /kb/bases/{id}/similar |
Near-duplicate / version-drift search by text or raw embedding (issue #83) |
| Parameter | Default | Description |
|---|---|---|
query |
(required) | Search query text |
top_k |
10 | Number of results |
threshold |
0.0 | Minimum similarity score |
hybrid |
false | Enable BM25+Vector hybrid search |
hybrid_alpha |
0.7 | Vector weight (alpha fusion) |
hybrid_method |
"rrf" | Fusion method: "alpha" or "rrf" |
rerank |
false | Enable reranking (default ON when FUSION_RAG_RERANK_MODEL is set) |
rerank_backend |
from env | Rerank stage: cross_encoder (fusion-mlx /v1/rerank, real bge-reranker-v2-m3) or llm (legacy prompt-scoring) |
rerank_model |
from env | Cross-encoder model name (overrides FUSION_RAG_RERANK_MODEL) |
rerank_top_n |
20 | Candidate pool size fed to the reranker before truncating to top_k (recall lift) |
folder_prefix |
(none) | Filter results by folder path prefix |
template |
(none) | Search template name (general/code/design) |
rewrite_mode |
(none) | Query rewrite: hyde, expand, condense |
status_filter |
"active" | Document status filter: active (default — drops deprecated docs), deprecated, all (issue #86) |
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.