
Knowledge Fabric
io.github.invarcore由 GitHub 帳號 invarcore 發布v0.1.1更新於 Nov 7, 2026
Multi-tenant hybrid RAG & evidence verification MCP server enforcing PostgreSQL RLS.
發布方自己的服務:Fabric
概覽
本機 MCP 伺服器,讓助理對存放在 PostgreSQL + pgvector 中的文件進行混合 RAG 檢索,並回傳附引用的證據包。
- 可以做什麼
- 以混合 RRF、詞法或向量模式檢索證據,回傳引用、分數與各路檢索健康狀態
- 依 ID 或來源 URI 取得被引用的片段或整份文件,並依租戶限定範圍
- 解釋檢索診斷資訊,例如詞法排名、向量距離、各路延遲與融合分數
- 檢視索引健康狀況、來源類型與文件數量,並稽核資料庫一致性
- 執行資料庫連線與嵌入供應商健康檢查
- 適用情境
- 適合助理需要根據既有企業文件或程式碼庫語料給出可引用答案的情境,尤其是語料已存放在 PostgreSQL 中,且需要租戶隔離與稽核紀錄時。
- 執行需求
- 以本機程序方式透過 uvx 或 Docker 執行。需要可連線的 PostgreSQL 資料庫(含 pgvector 與本專案結構),透過 DATABASE_URL 與 KF_DEFAULT_TENANT 設定。需選定嵌入供應商:預設為本機 Ollama 或 sentence-transformers,或使用 OpenAI、Cohere 並設定 OPENAI_API_KEY、COHERE_API_KEY。文件需事先完成匯入。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Knowledge Fabric,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[Knowledge Fabric & Intent Fabric]
Knowledge Fabric
Vendor-neutral, governance-first evidence retrieval for AI systems.
Native PostgreSQL + pgvector • Hybrid RRF Fusion • Cross-Encoder Reranking • Dual-Mode Multi-Tenancy • MCP-Native
[CI Status] [Invarcore Website] [Coverage: 94%] [Release] [Open in GitHub Codespaces] [License] [MCP Native] [Docker Ready]
⚡ 30-Second Quickstart
1. Instant Cloud Sandbox (Zero Local Setup)
Click to launch a fully configured browser VS Code workspace with PostgreSQL + pgvector and Tika running automatically:
2. Connect to Claude Desktop or Cursor (MCP)
Give Claude Desktop or Cursor private, local long-term memory over your enterprise codebase and documents. Add this to your claude_desktop_config.json:
3. Run Locally with Docker Compose (60 Seconds)
Why Knowledge Fabric?
The $100k/Year Dedicated Vector DB Trap vs. The PostgreSQL Reality
Most enterprise AI initiatives stall not because of model capability, but because of operational sprawl, data leakage, and ungrounded retrieval. Traditional architectures force engineering teams to introduce dedicated vector databases (Pinecone, Qdrant, Weaviate), creating a second source of truth, new vendor contracts, complex VPC peering, and $50k–$100k/year in recurring cloud spend.
Knowledge Fabric eliminates this entire infrastructure tier by running directly on your existing PostgreSQL database with pgvector HNSW indexes and native full-text search (tsvector), combined with Reciprocal Rank Fusion (RRF):
Industry Decision & Adoption Matrix
How actual CTOs deploy Knowledge Fabric across enterprise verticals:
Architecture
Quickstart & Deployment Options
Choose the consumption pathway that fits your architecture:
⚡ Pathway 1: Python Developers & MCP Users
If you are importing the retrieval engine into Python code, custom agents, or running MCP:
🐳 Pathway 2: Turnkey Evaluation (Docker Compose)
Spin up the entire multi-tenant stack (PostgreSQL + pgvector, Apache Tika, and Admin UI) in seconds:
☸️ Pathway 3: Kubernetes Deployment (Planned)
Helm chart packaging is planned. For now, deploy the Docker image directly to your cluster using standard Kubernetes Deployment + Service manifests, pointing to your external RDS / Cloud SQL instance.
[!NOTE] The
helm install oci://ghcr.io/invarcore/charts/knowledge-fabriccommand shown in earlier versions targets a Helm OCI registry that has not yet been published. Watch the releases page for the first official Helm chart release.
🛠️ Pathway 4: Local Contributor Setup
Model Provider Strategy: Zero Lock-In
Configure your preferred embedding and reranking providers with environment variables or config/settings.yaml:
Embedding Providers
Reranking Providers
Dual-Mode Multi-Tenancy
Knowledge Fabric provides two isolation layers to accommodate both lightweight development and regulated enterprise environments:
Mode 1: Application-Level Filtering (Default)
Every query and ingestion specifies tenant_id:
SQL queries automatically include WHERE d.tenant_id = %s. Requires no special database privileges.
Mode 2: PostgreSQL Row-Level Security (RLS)
For HIPAA, SOC2, or government environments requiring database-enforced isolation:
PostgreSQL kernel rejects any access that does not set session variable app.tenant_id:
Even if application code contains a bug or omission, cross-tenant data leakage is physically impossible.
Model Context Protocol (MCP) Tools
Knowledge Fabric exposes standard MCP tools for LLMs, desktop assistants, and workflow runners:
Adding to Claude Desktop / Cursor
Add to your claude_desktop_config.json:
Retrieval Benchmark
Run the included benchmark evaluation suite to compare retrieval accuracy across strategies:
[!NOTE] The numbers below are illustrative — generated by running
python benchmarks/evaluate_retrieval.pyon a small synthetic operational corpus. Run the command yourself on your own corpus to produce numbers that reflect your data and query distribution. Results will differ by domain, chunk size, and embedding model.
SaaS Source Connectors
Ingest content directly from enterprise platforms with the unified knowledge-fabric-sync CLI:
Large-Scale Vector Performance & Pluggable Backends
Knowledge Fabric is built to grow with your infrastructure from early prototyping to 100M+ vectors:
- HNSW Indexing (Migration 005): Upgrade from IVFFlat to HNSW for 10x higher QPS and sub-10ms latency:
- Declarative Tenant Partitioning: Partition the
chunkstable bytenant_id. Queries for a specific tenant scan only that tenant's dedicated partition index, enabling PostgreSQL to support tens of millions of vectors with partition pruning. - Pluggable Vector Store Protocol: For ultra-large enterprise clusters with existing dedicated vector infrastructure, plug in Qdrant with zero application changes:
Visual Admin & Governance UI
Knowledge Fabric includes a visual management console with zero Node/NPM dependencies:
Features:
- 🛡️ Human-in-the-Loop Approval Queue: Authorize or reject pending action plans with audit comments.
- 🔍 Interactive Retrieval Playground: Inspect side-by-side BM25, Cosine, RRF, and Cross-Encoder score distributions and citations.
- 📜 Live Audit Trail: Chronological event viewer tracking queries, latencies, and security events.
- ⚙️ Policy Engine Sandbox: Test proposed agent action strings against active YAML rules with instant match highlighting.
End-to-End Enterprise Example
See examples/04-end-to-end-with-intent:
A complete demonstration ingesting enterprise policy documents, querying hybrid evidence with multi-tenant partitioning, planning safe actions with Intent Fabric, evaluating YAML policy rules, and emitting an audit-ready approval package.
🧪 Testing & Verification
Knowledge Fabric enforces rigorous test coverage ($\ge 90%$), strict multi-tenant isolation, and a zero-live-HTTP CI architecture:
- Tier 1 (Golden Corpus Fixtures): NIST Special Publication 800-53 Rev 5 control catalog fixtures checked into
tests/fixtures/corpora/for deterministic, offline, sub-second CI validation. - Tier 2 (Opt-in Live Harness): Live cloud retrieval verification against OpenRouter (
benchmarks/live_retrieval_smoke_test.py --openrouter).
1. Run Complete Test Suite with Coverage Gate
2. End-to-End Live Verification Smoke Test
Run the zero-cost hermetic verification pipeline covering chunking, in-memory multi-tenant storage, hybrid RRF retrieval, cryptographic provenance (chunk hashes, package digest, HMAC-SHA256 signature), and MCP tools:
3. Containerized Verification with Docker Compose
Run the entire test suite and smoke test inside an isolated container:
Contributing
We welcome community contributions! Please see CONTRIBUTING.md for development setup, how to add new embedding/reranking providers, and coding standards.
Security
Please report security issues responsibly. See SECURITY.md for our vulnerability disclosure policy.
🏛️ Invarcore Verification Fabric
This engine is part of the Invarcore enterprise verification fabric. Invarcore develops mathematical invariants, cryptographic policy contracts, and execution runtimes for autonomous AI systems.
- Official Website & Architecture: https://invarcore.com
- Technical Whitepapers & Invariant Specs: https://invarcore.com/#whitepapers
- GitHub Organization: https://github.com/invarcore
- Security & Vulnerability Disclosure: [email protected]
License
Licensed under the Apache License, Version 2.0.
來源:README.md,提交 fdf5112
工具
0版本歷史
1- v0.1.1最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Fabric 整合
Fabric
so.fabric官方發布者
Fabric 的託管 MCP 服務,由 fabric.so 發布;需要憑證;Streamable HTTP。

MCP Fabric (Minecraft)
由 GitHub 帳號 denfry 發布
通過mcpfabric模組(Fabric和NeoForge)檢視並遊玩Minecraft: Java Edition。AI 翻譯

Unifi Fabric Mcp Server
由 GitHub 帳號 swkstudios 發布
MCP server for UniFi Fabric: Network, Protect, Site Manager, InnerSpace, Carrier Fabric, Mobility.

Neblex Integration Fabric
由 GitHub 帳號 neblexhq 發布
Neblex Integration Fabric 遠端伺服器,讓助理在雲端或地端建置、測試並發佈 iPaaS 流程、應用程式、表單與 AI 代理。

Fabric Verify
ai.augmentev
把 AI 代理的動作簽章記錄到防竄改公開日誌,並產生可離線驗證的證明。