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
:paraminneo4j/neo4J_import_script.cypherto 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.cypherin 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.pycd frontend
npm install
npm run devcd backend
npm install
npm run dev