Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/varunshenoy/GraphGPT
Extrapolating knowledge graphs from unstructured text using GPT-3 đĩī¸ââī¸
https://github.com/varunshenoy/GraphGPT
gpt-3 knowledge-graph
Last synced: about 1 month ago
JSON representation
Extrapolating knowledge graphs from unstructured text using GPT-3 đĩī¸ââī¸
- Host: GitHub
- URL: https://github.com/varunshenoy/GraphGPT
- Owner: varunshenoy
- License: mit
- Created: 2023-01-31T18:31:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-10T10:01:21.000Z (7 months ago)
- Last Synced: 2024-10-29T15:40:09.560Z (about 1 month ago)
- Topics: gpt-3, knowledge-graph
- Language: JavaScript
- Homepage: https://graphgpt.vercel.app
- Size: 3.4 MB
- Stars: 4,332
- Watchers: 55
- Forks: 390
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-open-gpt - GraphGPT
- Awesome-Graph-LLM - GraphGPT: Extrapolating knowledge graphs from unstructured text using GPT-3
- StarryDivineSky - varunshenoy/GraphGPT - 3 äģéįģæåææŦæ¨æįĨč¯åžč°ą (A01_ææŦįæ_ææŦå¯šč¯ / 大č¯č¨å¯šč¯æ¨Ąååæ°æŽ)
- Awesome-ChatGPT - GraphGPT
- awesome-summarization-llm - GraphGPT: Extrapolating knowledge graphs from unstructured text using GPT-3
- awesome-summarization-llm - GraphGPT: Extrapolating knowledge graphs from unstructured text using GPT-3
README
# GraphGPT
### Natural Language â Knowledge Graph![demo](demo.gif)
*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](https://github.com/jerryjliu/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](https://twitter.com/varunshenoy_/status/1625224544561819648?s=20) Twitter thread I put together to learn more about how these prompts were designed.
## Setup
1. Run `npm install` to download required dependencies (currently just [react-graph-vis](https://github.com/crubier/react-graph-vis)).
2. Make sure you have an [OpenAI API key](https://platform.openai.com/account/api-keys). You will enter this into the web app when running queries.
3. Run `npm run start`. GraphGPT should open up in a new browser tab.