Skip to content
프로젝트

tvlnsiva/graphrag-engineering-pdfs

GitHub에서 보기

소개

Ontology, and Knowledge graph based RAG that uses local LLM.

데이터 및 분석

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

GraphRAG 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)

  1. PDF ingestion and chunking
  2. Entity & relation extraction
  3. Graph construction (graph.pkl)
  4. Ontology induction (type_registry.json, type_hierarchy.json)
  5. Community detection (communities.json)
  6. Hybrid retrieval (Graph + FAISS)
  7. Improve cycle (LLM-assisted, checkpointed)
  8. Strategy evaluation
  9. 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

관련 프로젝트 살펴보기

불러오는 중…