Spaces:
Running

PrismStack-Demo / README.md
flintglass's picture
Release Flintglass PrismStack-Demo: Live 5-Stage Apache-2.0 Agent & RAG Pipeline on ONNX CPU (fixed colorTo metadata)
a10ad90 verified
|
Raw History Blame Contribute Delete
1.7 kB
---
title: Flintglass Prism Stack Demo
emoji: πŸ’Ž
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
license: apache-2.0
models:
- flintglass/PrismGuard-Small
- flintglass/PrismRedact-Small
- flintglass/PrismEmbed-Small
- flintglass/PrismRerank-Small
- flintglass/PrismVerify-Small
short_description: 5-stage Apache-2.0 Agent & RAG pipeline live on ONNX CPU
---
# Flintglass Prism Stack β€” Live 5-Stage End-to-End Agent & RAG Pipeline (ONNX CPU)
Run **ALL 5 Flintglass Prism ONNX CPU models** in a single end-to-end commercial-safe Agent & RAG workflow right on CPU:
1. **Protect β€” Prompt Injection (`flintglass/PrismGuard-Small`):** Scans the user query and every retrieved document for direct/indirect prompt injections and tool hijacking.
2. **Protect β€” PII & Secrets (`flintglass/PrismRedact-Small`):** Redacts 12 PII, PHI & developer secret classes (API keys, DB URIs, emails, IBANs, SSNs) β€” 100% commercial-safe (zero non-commercial `ai4privacy` data).
3. **Embed (`flintglass/PrismEmbed-Small`):** Computes Zero-MS-MARCO Matryoshka dense embeddings & cosine retrieval rankings.
4. **Rerank (`flintglass/PrismRerank-Small`):** Cross-encoder reranks sanitized documents to surface the exact supporting evidence.
5. **Verify (`flintglass/PrismVerify-Small`):** Verifies the draft LLM answer against the top-ranked context for hallucinations (`FAITHFUL` / `CONTRADICTION` / `UNSUPPORTED`).
Explore all **100+ Apache-2.0 Flintglass Prism models, datasets & Spaces** in the **[Flintglass Prism Stack Collection](https://huggingface.co/collections/flintglass/flintglass-prism-open-agent-and-rag-stack-6b0df22104aefbb7e8d4fe11)**.