How gayatri-n-gaikwad/industrial-knowledge-assistant works
OpsBrain is a Streamlit application that turns industrial PDFs into searchable, AI-assisted operational knowledge. Engineers upload and categorize documents; ingestion extracts and chunks text, stores embeddings in ChromaDB, and extracts entities for the knowledge graph. From the UI, users can ask grounded questions, audit a document for compliance and download a report, review incident patterns, explore shared entities, and view library metrics. The README documents major capabilities; sampled source excerpts establish several implementation links, while unsampled UI and feature details rely on documented relationships.
Main entry points: app.py Application UI · ingestion.py PDF ingestion · rag.py Knowledge copilot · compliance.py Compliance audit
Components 13
Streamlit experience
- Application UI
app.py - Operations dashboard
dashboard.py
Knowledge ingestion
- PDF ingestion
ingestion.py - Entity extraction
ingestion.py - Vector store
- Entity store
entities_store.json
Operational analysis
- Knowledge copilot
rag.py - Compliance audit
compliance.py - Incident patterns
lessons.py - Audit report PDF
report_generator.py
Knowledge insights
- Knowledge graph
graph.py
Other components
- Plant engineer
- Gemini API
Connections 20
- Plant engineer → Application UI: uses
README.md - Application UI → PDF ingestion: uploads PDFs
app.py - PDF ingestion → Vector store: stores chunks
ingestion.py - PDF ingestion → Entity extraction: extracts entities
ingestion.py - Entity extraction → Entity store: updates
ingestion.py - PDF ingestion → Gemini API: embeds text
README.md - Entity extraction → Gemini API: extracts with
ingestion.py - Application UI → Knowledge copilot: asks questions
app.py - Knowledge copilot → Vector store: retrieves chunks
rag.py - Knowledge copilot → Gemini API: generates answers
rag.py - Application UI → Compliance audit: runs audits
app.py - Compliance audit → Vector store: reads document text
compliance.py - Compliance audit → Gemini API: evaluates checklist
README.md - Application UI → Audit report PDF: creates audit PDF
README.md - Application UI → Incident patterns: analyzes incidents
app.py - Incident patterns → Vector store: fetches incidents
lessons.py - Incident patterns → Gemini API: synthesizes patterns
lessons.py - Application UI → Operations dashboard: renders metrics
app.py - Application UI → Knowledge graph: renders graph view
app.py - Knowledge graph → Entity store: uses entity data
graph.py