tvlnsiva/graphrag-engineering-pdfs
tvlnsiva/graphrag-engineering-pdfs has 32 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 04:42 UTC. Last push 2026-01-03.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Ontology, and Knowledge graph based RAG that uses local LLM.
AIREADME.md
OriginalGraphRAG for Large Engineering PDFs
Production-grade GraphRAG pipeline for building, improving, evaluating, and documenting knowledge graphs over large engineering and technical PDFs.
This repository implements a deterministic + LLM-assisted GraphRAG system with ontology induction, community-aware retrieval, evaluation, and automated documentation generation.
What This Project Does
- Extracts entities and relations from engineering PDFs
- Builds a materialized knowledge graph (NetworkX)
- Learns ontology types and type hierarchies from data
- Detects semantic communities in the graph
- Prevents semantic drift using community-aware retrieval
- Supports hybrid retrieval (Graph + Vector / FAISS)
- Runs targeted LLM improve cycles for factual gaps
- Evaluates multiple RAG strategies
- Generates DOCX and PDF technical documentation automatically
Core Pipeline (Implemented)
- PDF ingestion and chunking
- Entity & relation extraction
- Graph construction (
graph.pkl) - Ontology induction (
type_registry.json,type_hierarchy.json) - Community detection (
communities.json) - Hybrid retrieval (Graph + FAISS)
- Improve cycle (LLM-assisted, checkpointed)
- Strategy evaluation
- Automated documentation generation
Key Artifacts
| Artifact | Description |
|---|---|
index/graph.pkl |
Materialized knowledge graph |
index/type_registry.json |
Learned ontology classes |
index/type_hierarchy.json |
Inferred type hierarchy |
index/communities.json |
Graph communities |
index/faiss.index |
Vector index |
index/strategy_comparison.json |
Strategy evaluation |
index/missed_knowledge.json |
Improve-cycle gaps |
documentation/GraphRAG_Documentation.docx |
Auto-generated doc |
documentation/GraphRAG_Documentation.pdf |
PDF (LibreOffice) |
Documentation
Technical documentation is generated automatically using:
python scripts/generate_documentation.py
Outputs:
- DOCX (always)
- PDF (via LibreOffice headless)
Design Philosophy
- Deterministic structure before LLMs
- LLMs used only for factual completion
- Community boundaries prevent semantic drift
- Explainability and reproducibility over recall
Status
- Core GraphRAG engine: ✅ COMPLETE
- Ontology & communities: ✅ COMPLETE
- Evaluation & documentation: ✅ COMPLETE
- Operationalization: 🚧 IN PROGRESS