Implement universal knowledge graph builder with LLM extraction and visual interface#1
Draft
Copilot wants to merge 7 commits into
Draft
Implement universal knowledge graph builder with LLM extraction and visual interface#1Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
Co-authored-by: SiderLock <156282495+SiderLock@users.noreply.github.com>
Co-authored-by: SiderLock <156282495+SiderLock@users.noreply.github.com>
Co-authored-by: SiderLock <156282495+SiderLock@users.noreply.github.com>
Co-authored-by: SiderLock <156282495+SiderLock@users.noreply.github.com>
Co-authored-by: SiderLock <156282495+SiderLock@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add modern visual knowledge graph building tool
Implement universal knowledge graph builder with LLM extraction and visual interface
Dec 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a domain-agnostic knowledge graph construction tool that extracts entities and relationships from unstructured text using LLMs, with interactive visualization and a GUI interface.
Core Components
src/kg_builder/graph.py): NetworkX-based directed graph with entity/relationship management, JSON serialization, and graph statisticssrc/kg_builder/extractor.py): LLM-powered extraction (OpenAI/Anthropic) with regex-based fallback for offline operationsrc/kg_builder/visualizer.py): PyVis interactive HTML graphs with color-coded entity types and draggable layoutssrc/kg_builder/config.py): Environment-based LLM client initialization and settings managementInterfaces
gui.py): Tkinter application with text input, domain selection, extraction controls, and visualization triggerscli.py): Command-line tool supporting batch processing, statistics display, and visualization generationdemo.py): Interactive walkthrough demonstrating extraction → graph building → visualization pipelineUsage
Or via GUI:
python gui.py # Load text → Select domain → Extract → VisualizeFeatures
Testing
test_complete.py: End-to-end validation of extraction → graph → visualization pipelinetest_basic.py: Core data structure operationstest_visualization.py: HTML output generationtest_gui.py: Component initialization and workflow simulationAll tests passing with 0 CodeQL vulnerabilities detected.
Examples
Included examples demonstrate extraction from:
examples/python_ecosystem.txt: Technology domain (programming languages, frameworks)examples/cardiovascular_system.txt: Medical domain (anatomy, diseases)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.