Skip to content
teajas14Public

About

EdgeMind is an AI-powered industrial maintenance assistant that combines Retrieval-Augmented Generation (RAG), Llama 3, FAISS, Streamlit, and UiPath to analyze industrial incidents, identify root causes, generate maintenance recommendations, automate report generation, and trigger enterprise workflows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🏭 EdgeMind

AI-Powered Industrial Incident Automation Assistant

Python LangChain Streamlit Ollama FAISS UiPath

EdgeMind is an intelligent industrial maintenance platform that combines Retrieval-Augmented Generation (RAG), Large Language Models (Llama 3), and UiPath Enterprise Automation to help maintenance engineers diagnose industrial equipment failures, identify root causes, recommend corrective actions, and automatically generate maintenance reports.

Unlike traditional chatbots, EdgeMind retrieves relevant historical incidents from an internal knowledge base before generating responses — making recommendations more accurate, explainable, and enterprise-ready.


🚀 Features

  • 🔍 Semantic search across historical maintenance incidents
  • 🧠 Retrieval-Augmented Generation (RAG) pipeline
  • 🤖 AI-powered maintenance recommendations using Llama 3 (Ollama)
  • 📚 FAISS Vector Database for similarity search
  • 🏭 Root Cause Analysis (RCA)
  • ⚠️ Incident severity classification
  • 📄 Automatic maintenance report generation
  • 📑 Incident logging and history tracking
  • 🤖 UiPath enterprise workflow integration
  • 🚨 High-priority incident escalation
  • 🌐 Interactive Streamlit dashboard

🏗️ System Architecture

                     ┌──────────────────────┐
                     │   Streamlit UI       │
                     └──────────┬───────────┘
                                │
                         User Query
                                │
                                ▼
                   ┌────────────────────┐
                   │ FAISS Vector Store │
                   └─────────┬──────────┘
                             │
                 Similar Incident Retrieval
                             │
                             ▼
                ┌────────────────────────┐
                │ Llama 3 (via Ollama)   │
                └─────────┬──────────────┘
                          │
                 AI Recommendation
                          │
                          ▼
             Structured Incident Analysis
                          │
                          ▼
              Incident Logging (CSV)
                          │
                          ▼
                UiPath Enterprise Workflow
                          │
          ┌───────────────┴────────────────┐
          ▼                                ▼
 Maintenance Report              Escalation Log

🛠️ Tech Stack

Technology Purpose
Python Backend
Streamlit Web Application
LangChain RAG Pipeline
FAISS Vector Database
HuggingFace Embeddings Semantic Search
Ollama Local LLM Runtime
Llama 3 AI Recommendation Engine
Pandas Data Processing
UiPath Enterprise Automation
CSV Incident Logging

📁 Project Structure

EdgeMind/
│
├── app.py
├── requirements.txt
├── data/
│   └── manuals/
│       └── incidents/
│
├── rag/
│   ├── documents.py
│   ├── chunk_documents.py
│   ├── create_embeddings.py
│   └── build_vectorstore.py
│
├── vectorstore/
├── reports/
├── logs/
└── README.md

⚙️ Workflow

Step Description
1️⃣ User submits a maintenance-related query (e.g. "Why is the conveyor motor vibrating?")
2️⃣ FAISS performs semantic similarity search across historical incidents
3️⃣ Relevant incidents are retrieved from the knowledge base
4️⃣ Llama 3 generates Root Cause, Recommendation & Suggested Resolution
5️⃣ Incident details are automatically logged to CSV
6️⃣ UiPath generates Maintenance Report, Escalation Log & High Priority Alerts

💬 Sample Queries

Hydraulic Press

  • Why is the hydraulic press losing pressure?
  • Why is the hydraulic press leaking oil?

Conveyor System

  • Why is the conveyor motor vibrating?
  • Why did the conveyor suddenly stop?

Industrial Pump

  • Why is the pump overheating?
  • Why is the discharge pressure low?

CNC Machine

  • Why is the spindle overheating?
  • Why is the spindle producing abnormal vibrations?

🔁 RAG Pipeline

Industrial Incident Files
           │
           ▼
Document Loader
           │
           ▼
Text Chunking
           │
           ▼
Sentence Transformer Embeddings
           │
           ▼
FAISS Vector Store
           │
           ▼
Similarity Search
           │
           ▼
Relevant Context → Llama 3 → AI Recommendation

🏢 Enterprise Automation

EdgeMind integrates with UiPath to automate post-analysis maintenance operations:

  • Reads the latest analyzed incident
  • Generates maintenance reports
  • Creates escalation logs
  • Detects high-priority incidents
  • Produces enterprise-ready documentation

🛠️ Installation & Setup

# Clone the repository
git clone https://github.com/teajas14/EdgeMind.git
cd EdgeMind

# Create and activate virtual environment
python -m venv venv
venv\Scripts\activate        # Windows
# source venv/bin/activate   # macOS/Linux

# Install dependencies
pip install -r requirements.txt

▶️ Running the Application

# Start Ollama
ollama serve

# Pull Llama 3
ollama run llama3

# Launch the app
streamlit run app.py

🔮 Future Enhancements

  • Live IoT sensor integration
  • Predictive maintenance using time-series forecasting
  • Voice-enabled maintenance assistant
  • Multi-user authentication
  • SAP & Power BI integration
  • Cloud deployment
  • Email and Teams notifications
  • OCR support for maintenance manuals

👨‍💻 Author

Teajas S B.E Computer Science & Engineering | St. Joseph's Institute of Technology

LinkedIn GitHub


⭐ If you found this project interesting, consider giving it a star!

About

EdgeMind is an AI-powered industrial maintenance assistant that combines Retrieval-Augmented Generation (RAG), Llama 3, FAISS, Streamlit, and UiPath to analyze industrial incidents, identify root causes, generate maintenance recommendations, automate report generation, and trigger enterprise workflows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages