Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

fusion-rag

Latest version: v0.8.46

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: dahai80
1 Stars
0 Forks
13 Versions
1.4K Downloads
Python Repo language

Scan summary

fusion-rag was last scanned on 25 Nov 2026 at version 0.8.46. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 0.8.46.
  • Downloads: 1,418 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.8.46

Findings

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.

README

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:

  • README.md

Fusion-RAG

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).

Python License Tests Version

Quick Start · API Reference · Architecture · Documentation


Why Fusion-RAG?

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.


Quick Start

Prerequisites
  • macOS with Apple Silicon (M1–M5)
  • Python 3.12+
  • fusion-mlx running on localhost:11432
Install

From 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 the Server
./start.sh start
# Fusion-RAG running on http://127.0.0.1:11436
Minimal Example
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())

API Reference

Fusion-RAG provides a REST API at /kb/* for knowledge base operations.

Knowledge Base Management
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
Document Operations
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
Search & RAG
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)
Search Parameters
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)
Ask Parameters

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases fusion-rag

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229