Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🧠 Agentic Reliability Framework MVP
|
| 2 |
+
|
| 3 |
+
**Author:** [Juan D. Petter](https://github.com/petter2025)
|
| 4 |
+
**Stack:** Python 3.10 · Gradio 5.49.1 · FastAPI · FAISS · SentenceTransformers · Hugging Face Router API
|
| 5 |
+
|
| 6 |
---
|
| 7 |
+
|
| 8 |
+
## 🚀 Overview
|
| 9 |
+
|
| 10 |
+
The **Agentic Reliability Framework MVP** is an intelligent observability and self-healing system that combines:
|
| 11 |
+
|
| 12 |
+
- **Adaptive anomaly detection** (latency/error-rate monitoring)
|
| 13 |
+
- **AI-driven root cause analysis** powered by Hugging Face’s Inference Router
|
| 14 |
+
- **Persistent FAISS vector memory** for incident recall and similarity search
|
| 15 |
+
- **Agentic self-healing simulation** (automated reliability responses)
|
| 16 |
+
|
| 17 |
+
This MVP runs entirely in a Hugging Face Space and doubles as both:
|
| 18 |
+
- a **visual Gradio dashboard**, and
|
| 19 |
+
- a **REST API backend** (via FastAPI).
|
| 20 |
+
|
| 21 |
---
|
| 22 |
|
| 23 |
+
## ⚙️ Features
|
| 24 |
+
|
| 25 |
+
| Module | Description |
|
| 26 |
+
|--------|--------------|
|
| 27 |
+
| **Anomaly Detection** | Adaptive thresholding + random test anomalies |
|
| 28 |
+
| **AI Insight Generation** | Uses `mistralai/Mixtral-8x7B-Instruct-v0.1` via Hugging Face Router |
|
| 29 |
+
| **Self-Healing Simulation** | Randomized corrective actions |
|
| 30 |
+
| **Persistent Memory** | FAISS + JSON persistence with file locks |
|
| 31 |
+
| **REST API** | `/add-event` route secured with an optional API key |
|
| 32 |
+
| **UI Dashboard** | Live anomaly visualization via Gradio Blocks |
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## 🧩 Tech Stack
|
| 37 |
+
|
| 38 |
+
| Component | Purpose |
|
| 39 |
+
|------------|----------|
|
| 40 |
+
| `gradio` | Dashboard / UI |
|
| 41 |
+
| `fastapi` | API backend |
|
| 42 |
+
| `sentence-transformers` | Embeddings for FAISS |
|
| 43 |
+
| `faiss-cpu` | Vector memory store |
|
| 44 |
+
| `requests` | Hugging Face Inference Router calls |
|
| 45 |
+
| `filelock` | Safe concurrent persistence |
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## 🧠 Architecture Flow
|
| 50 |
+
|
| 51 |
+
|