Krionis Pipeline 1.0
Krionis Pipeline is a local-first Retrieval-Augmented Generation platform for controlled, auditable AI workflows. It is designed for secure and airgapped environments where teams need API-driven retrieval, human review controls, traceability, and a practical operator experience without depending on cloud infrastructure.
Backward compatibility is preserved:
import rag_llm_api_pipelinestill worksrag-clistill workskrionis-cliis available as the branded CLI entry point
What Is New In 1.0
- Mandatory HITL gating for flagged outputs
- Review queue persistence with original and final responses stored separately
- Append-only audit tracing across query, retrieval, generation, and signoff
- SQLite-backed result metadata for
GoodandBadfeedback plus review outcomes - API-driven index visibility and manual cache rebuild operations
- Split operator UX for control, telemetry, runtime, configuration, records, and review
- CPU-friendly quantized default model profile for local deployment
- Isolated generation worker to keep the API responsive during model load or failure
- Docker packaging for integrated platform deployment
- Expanded API documentation for custom frontend development
Core Capabilities
🔍 Retrieval-Augmented Generation (RAG)
- FAISS/HNSW vector indices
- SentenceTransformers embeddings
🧠 Flexible LLM Integration
- HuggingFace open-source models (Qwen, Mistral, LLaMA, etc.)
- Mixed precision: fp32, fp16, bfloat16
- Dynamic model/device/precision switching via YAML
🔧 1-line YAML Configuration
- System-specific documents
- Embedding & generation model selection
- CPU/GPU inference toggle
- Index rebuilding, token limits, chunking
📂 Multimodal Input Support
- PDFs
- Plain text
- Images (OCR via Tesseract)
- Audio (.wav)
- Video (.mp4)
💻 Multiple Interfaces
- CLI (
rag-cli/krionis-cli) for single-line querying - FastAPI-powered REST API for local serving
- Lightweight HTML Web UI for interactive search
Quickstart
Required Setup
Before starting the platform, make sure your working directory contains:
config/system.yamldata/manuals/
Install:
pip install krionis-pipeline
Build the retrieval index and start the API:
krionis-cli build-index --system TestSystem
uvicorn rag_llm_api_pipeline.api.server:app --host 127.0.0.1 --port 8000
Open:
http://127.0.0.1:8000/for the operator consolehttp://127.0.0.1:8000/api/docsfor the API referencehttp://127.0.0.1:8000/ui/reviewsfor the review queue
Installation
pip install krionis-pipeline
🛠️ Setup Instructions (Windows + Anaconda)
1. Create Python Environment
conda create -n rag_env python=3.10
conda activate rag_env
2. Install Dependencies
Via Conda (system-level tools):
conda install -c conda-forge ffmpeg pytesseract pyaudio
Via Pip (Python packages):
pip install -r requirements.txt
Ensure Tesseract is installed and in your system PATH. You can get it from https://github.com/tesseract-ocr/tesseract.
🚀 Usage
Please review the quickstart guide.
🐧 Setup Instructions (Linux)
1. Create Python Environment
python3 -m venv rag_env
source rag_env/bin/activate
Or with conda:
conda create -n rag_env python=3.10
conda activate rag_env
2. Install System Dependencies
sudo apt update
sudo apt install -y ffmpeg tesseract-ocr libpulse-dev portaudio19-dev
Optional: install language packs for OCR (e.g.,
tesseract-ocr-eng).
3. Install Python Packages
pip install -r requirements.txt
🔁 Running the Application on Linux
CLI
python cli/main.py --system TestSystem --question "What is the restart sequence for this machine?"
API Server
uvicorn rag_llm_api_pipeline.api.server:app --host 0.0.0.0 --port 8000
cURL Query
bash
curl -X POST http://localhost:8000/query
-H "Content-Type: application/json"
-d '{"system": "TestSystem", "question": "What does error E204 indicate?"}'
## 📚 How it Works
1. **Index Building**:
- Files are parsed using `loader.py`.
- Text chunks are embedded with MiniLM.
- FAISS index stores embeddings for fast similarity search.
2. **Query Execution**:
- User provides a natural language question.
- Relevant text chunks are retrieved from the index.
- LLM generates an answer based on retrieved context.
---
## 🧠 Model Info
- All models are open-source and run offline.
> You can replace with any local-compatible Hugging Face model.
---
## 🔐 Security & Offline Use
- No cloud or external dependencies required after initial setup.
- Ideal for OT environments.
- All processing is local: embeddings, LLM inference, and data storage.
---
## 📜 License
MIT License
---
## 📧 Contact
For issues, improvements, or contributions, please open an issue or PR.
## Documentation
The repository includes a documentation portal scaffold for developers building on top of the Krionis API.
- Interactive API docs: `/api/docs`
- ReDoc reference: `/api/reference`
- Static docs source: `docs/`
- Docs build config: `mkdocs.yml`
Metadata
Release files for krionis-pipeline 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| krionis_pipeline-1.1.0.tar.gz | 91.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| krionis_pipeline-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 187.4 kB
Release files / krionis_pipeline-1.1.0.tar.gz
| Download URL | krionis_pipeline-1.1.0.tar.gz |
|---|---|
| Size | 91.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
640faf917ca5c47e1644b2d6045b79da480e4f5bc8de6ffa97f941df6d8b50e2
|
|
BLAKE2b-256 checksum How to use checksums |
66e61f790655d3c874e2848aa164737d3debf773948503e2c4fa5c50324c89ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logRelease files / krionis_pipeline-1.1.0-py3-none-any.whl
| Download URL | krionis_pipeline-1.1.0-py3-none-any.whl |
|---|---|
| Size | 95.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad9fe3441e6cccdf202b0756d3d0348d9609025cd06ee9af9c83b2f0b3cb8008
|
|
BLAKE2b-256 checksum How to use checksums |
4ff40d7da528d46d20625f813608194ffe5e5740b8193fef48a490b8b278e016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logSecurity for krionis-pipeline 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for krionis_pipeline-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.