varunshenoy/GraphGPT
varunshenoy/GraphGPT has 4,423 GitHub stars and 395 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 15:43 UTC. Last push 2024-05-10.
Extrapolating knowledge graphs from unstructured text using GPT-3 🕵️♂️
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGraphGPT
Natural Language → Knowledge Graph

Note: this is a toy project I built out over a weekend. If you want to use knowledge graphs in your project, check out GPT Index.
GraphGPT converts unstructured natural language into a knowledge graph. Pass in the synopsis of your favorite movie, a passage from a confusing Wikipedia page, or transcript from a video to generate a graph visualization of entities and their relationships.
Successive queries can update the existing state of the graph or create an entirely new structure. For example, updating the current state could involve injecting new information through nodes and edges or changing the color of certain nodes.
The current few-shot prompt guides GPT-3 in accurately understanding the JSON formatting GraphGPT requires for proper rendering. You can see the entire prompt in public/prompts/main.prompt. A major issue at the moment is latency. Due to the nature of OpenAI API calls, it takes up to 20 seconds to receive a response.
Prompts
Prompts are located in the public/prompts folder. Read this Twitter thread I put together to learn more about how these prompts were designed.
Setup
- Run
npm installto download required dependencies (currently just react-graph-vis). - Make sure you have an OpenAI API key. You will enter this into the web app when running queries.
- Run
npm run start. GraphGPT should open up in a new browser tab.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,875 starspublic-apis/public-apis
A collective list of free APIs
497,120 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,926 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,168 stars