instagraph

(★ 3,554)

Converts text input or URL into knowledge graph and displays

File Explorer

  • .env.example
  • .gitignore
  • CONTRIBUTION.MD
  • dockerignore
  • LICENSE
  • main.py
  • Makefile
  • models.py
  • poetry.lock
  • pyproject.toml
  • README.md
  • replit.nix
  • requirements.txt

# Installation Guide

python / docker

Setup Steps

git clone https://github.com/yoheinakajima/instagraph.git

Clone the repository locally.

pip install -r requirements.txt

Install Python dependency packages.

cp .env.example .env

Create environment configuration file by copying example.

python main.py

Run the Flask application.

Key Commands

pip install -r requirements.txt

Install Python libraries specified in requirements.txt.

python main.py --port 8080

Start the InstaGraph Flask server.

docker-compose -f docker/docker-compose.yml up --build -d

Run the application in a container environment using Docker.

Setting OPENAI_API_KEY in the .env file is required, and Neo4j or FalkorDB settings can be added if needed.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

python {{path/to/file.py}}

Execute a specific Python file:

python -i {{path/to/file.py}}

Execute a specific Python file and start a REPL:

// repository documentation