Skip to main content

Retrieval-augmented industrial intelligence

Every answer, traced back to the page it came from.

OpsBrain turns manuals, inspection reports, P&IDs, spreadsheets and maintenance logs into a searchable knowledge base. Ask a question in plain language and get an answer with citations to the exact source pages.

Built on

  • Next.js
  • FastAPI
  • LangGraph
  • Groq
  • pgvector
  • PostgreSQL

What it does

Ingestion, retrieval, reasoning and citation mapping run as one pipeline. These are the screens of the working app, shown with demo data.

Cited answers from your own documents

Each answer is generated from the passages retrieved for the question. Every citation names the file and page it came from, with a relevance score.

  • Click a citation to open the source document at the cited page
  • A citation whose passage does not support the sentence is flagged as unverified
  • Follow-up questions use the earlier turns of the conversation
The OpsBrain chat page showing a question about pump P-101A, an answer with two numbered citations, and the message box
Chat with a saved conversation. Demo data.

The source page, with the passage highlighted

A citation opens the stored page text and highlights the passage the answer relied on, so a reader can check the claim in context before acting on it.

  • Page text and, for PDFs, the rendered page image
  • Previous and next page navigation
  • Spreadsheets and emails are shown as the text of their rows and messages
The document viewer open at page 1 of a maintenance log with one line highlighted
Document viewer opened from a citation to a maintenance log. Demo data.

Equipment, failures and procedures, linked

Equipment tags, regulations, failure modes and numbered procedures are extracted when a document is ingested and linked into a graph. Query a tag to see what connects to it and which documents mention it.

  • Extraction runs during ingestion with no manual tagging
  • Traverse from one piece of equipment to every document that references it
  • Each node lists its regulations, failures and procedures
The equipment relationship graph for tag P-101A with connected equipment and a list of regulations and failures
Equipment graph queried for P-101A. Demo data.

A compliance scan for each document

The scan checks a document's passages against the regulation and standard codes found in it and lists gaps by severity. Each finding quotes the passage and page it came from.

  • Gaps are ranked high, medium or low
  • Regulations that have no compliance evidence in the document are listed
  • Every finding links to its source page
The compliance report for an inspection document listing gaps with severity labels and quoted evidence
Compliance scan of an inspection report. Demo data.

One pipeline for PDFs, drawings, spreadsheets and email

Scanned PDFs are OCR'd, P&ID drawings keep their embedded text tags, and Excel, CSV and .eml files are parsed into the same chunks. Ingestion status is shown for every file.

  • Re-process or delete a document at any time
  • Deleting a document removes its chunks, extracted entities and stored file
  • Each user sees only their own documents
The documents page with an upload area, a status chart and a list of uploaded files with their ingestion status
Documents page with ingestion status. Demo data.
Two-tier inference
Answers are generated through the Groq API. Self-hosted setups can fall back to a local Ollama model when one is reachable.
Versioned, token-secured API
Auth, documents, search, chat, conversations and the graph are exposed through a typed REST API secured with Firebase ID tokens.

From document pile to verified answer

  1. 1Upload

    Add manuals, inspection reports, P&IDs, spreadsheets and emails. OCR, parsing and chunking run automatically.

  2. 2Ask

    Ask a question in plain language. The system retrieves the relevant passages and generates an answer from them.

  3. 3Verify

    Each answer carries citations back to the source page, so you can check it before you act on it.

Try it on your own documents

Create an account, upload a manual or a report, and ask a question about it. Documents are private to the account that uploaded them.