Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

Knowledge Graphs & GraphRAG for Process Industry

A short introductory hands-on guide for process data scientists

This book is 100% completeLast updated on 2026-05-17

This short book introduces process data scientists to knowledge graphs and GraphRAG, a powerful combination that overcomes the limitations of vanilla RAG when answering the kind of cross-document, relationship-heavy questions that process engineers usually care about. With a hands-on, application-driven approach, the book walks readers through the complete pipeline: designing an ontology for plant data, using LLMs to extract entities and relationships from incident reports, building and querying the graph in Neo4j, and finally assembling everything into a demo web application.

Minimum price

Free!

$1.00

You pay

Author earns

$
PDF
About

About

About the Book

This short book is designed to help readers quickly gain a working-level knowledge of building knowledge graph and GraphRAG-based applications tailored for process industry operations. The book covers the complete journey from understanding why traditional retrieval-augmented generation falls short on relationship-heavy plant questions, to designing a domain ontology, extracting entities from unstructured incident reports with LLMs, querying the resulting knowledge graph with natural language, and finally deploying everything as a web application. With a hands-on, tutorial-style approach throughout, readers will learn how to set up Neo4j, write Cypher queries that traverse multi-hop relationships, use OpenAI structured outputs for reliable extraction, build a natural-language-to-Cypher pipeline with LangChain, and combine graph traversal with vector search for hybrid retrieval. The application-focused approach of the book is reader-friendly and easily digestible for practicing and aspiring process engineers and data scientists. Upon completion, readers will be able to confidently build and deploy GraphRAG solutions for their plants and make informed design decisions suitable for their industrial environments.

The following topics are broadly covered:

• Why knowledge graphs and GraphRAG matter for process industry operations

• Where traditional approaches (relational databases and simple RAG) fall short

• Setting up Neo4j AuraDB and learning the Cypher query language from scratch

• Designing a domain ontology for process troubleshooting data

• LLM-powered entity and relationship extraction with OpenAI structured outputs

• Automated ingestion of incident reports into a Neo4j knowledge graph

• Building a natural-language-to-Cypher query pipeline with LangChain

• Demo Application: A complete Streamlit-based process troubleshooting assistant

Share this book

Author

About the Author

Ankur Kumar

Ankur Kumar holds a PhD degree (2016) in Process Systems Engineering from the University of Texas at Austin and a bachelor’s degree (2012) in Chemical Engineering from the Indian Institute of Technology Bombay. He currently works at Linde in the Advanced Digital Technologies & Systems Group in Linde’s Center of Excellence, where he has developed several in-house machine learning-based monitoring and process control solutions for Linde’s hydrogen and air-separation plants. Ankur’s tools have won several awards both within and outside Linde. One of his tools, PlantWatch (a plantwide fault detection and diagnosis tool), received the 2021 Industry 4.0 Award by the Confederation of Industry of the Czech Republic. Ankur has authored or co-authored several peer-reviewed journal papers (in the areas of data-driven process modeling and monitoring), is a frequent reviewer for many top-ranked Journals, and has served as Session Chair at several international conferences. Ankur served as an Associate Editor of the Journal of Process Control from 2019 to 2021, and currently serves on the Editorial Advisory Board of Industrial & Engineering Chemistry Research Journal. Most recently, he was included in the ‘Engineering Leaders Under 40, Class of 2023‘ by Plant Engineering Magazine.

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub