Skip to content
linuslytPublic

About

Knowledge Graph visualization for foodatlas.ai knowledge graph

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

156 Commits

Folders and files

Repository files navigation

FoodNetwork - Knowledge Graph visualization for foodatlas.ai knowledge graph

Setup

Neo4j

To install the database and import the base entities and relationships:

  • Download and install Neo4J Desktop 2.0: https://neo4j.com/docs/desktop/current/installation/

  • Download dataset v 3.2.0 from https://www.foodatlas.ai/food-composition-downloads

  • Unzip into directory of choice. Update the file paths under :param in neo4j/neo4J_import_script.cypher to your selected directory.

  • In Neo$J Desktop 2.0, create a new database instance.

  • Create neo4j/.env:

      NEO4J_URI='neo4j://127.0.0.1:7687'
      NEO4J_KEY='...'
      OPENAI_API_KEY='...'
  • Run neo4j/neo4J_import_script.cypher in Neo$J Desktop 2.0 to import data.

To generate the vector indices for entity names, from project root, run:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python ./neo4j/create_name_index.py

Frontend

cd frontend
npm install
npm run dev

Backend

cd backend
npm install
npm run dev

About

Knowledge Graph visualization for foodatlas.ai knowledge graph

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages