Note for non-coders: you can sign up for the waitlist at instagraph.ai.
Hello there, adventurous coder! Welcome to InstaGraph, your go-to application for converting text or URLs into insightful knowledge graphs. Curious about the relationships between entities in a complex topic? Feed the text to InstaGraph and voila! A beautiful knowledge graph is at your fingertips.
See example flowcharts generated by InstaGraph here.
Powered by OpenAI's GPT-3.5, this Flask application turns your text into a vividly colored graph, making it easier to visualize relationships between various entities. Enough talking—let's get started!
Author's TL;DR: If you're just looking for how the knowledge graph is generated, check out the function call parameters taking up half of main.py.
To get started, you'll need Python and pip installed.
git clone https://github.com/yoheinakajima/instagraph.git
cd instagraph
pip install -r requirements.txt
Change .env.example to .env
mv .env.example .env
Add your OpenAI API key to .env file:
OPENAI_API_KEY=your-api-key-here
Use: [--graph neo4j|falkordb]
to select the Graph Database driver
Add Neo4J username, password and URL in the *.env
file as well by creating an instance of neo4j.
NEO4J_USERNAME=
NEO4J_PASSWORD=
NEO4J_URI=
Add FalkorDB URL in the *.env
file as well by creating an instance of FlakorDB.
FALKORDB_URL=
python main.py [--graph neo4j|falkordb] [--port port] [--debug]
Navigate to http://localhost:8080
to see your app running.
git clone https://github.com/yoheinakajima/instagraph.git
cd instagraph/docker
docker-compose -f docker-compose-dev.yml up # Add -d flag at the end to run in background/daemon mode.
gunicorn==21.2.0
to run the application in production modedocker-compose -f docker-compose.yml up --build -d
http://localhost:8080
.GET Response Data: /get_response_data
POST
{"user_input": "Your text here"}
GET Graph Data: /get_graph_data
POST
GET History Data: /get_graph_history
GET
Best way to chat with me is on Twitter at @yoheinakajima. I usually only code on the weekends or at night, and in pretty small chunks. I have lots ideas on what I want to add here, but obviously this would move faster with everyone. Not sure I can manage Github well given my time constraints, so please reach out if you want to help me run the Github. Now, here are a few ideas on what I think we should add based on comments...
There are a lot of "build a chart" tools out there, so instead of doing user account and custom charts, it sounds more fun for me to work on building the largest knowledge graph ever...
Before creating an Issue please refer the ISSUE_TEMPLATE provided.
MIT License. See LICENSE for more information.
Enjoy using InstaGraph! 🎉