This repository accompanies the Build an Neo4j-backed Chatbot using Python course on Neo4j GraphAcademy.
For a complete walkthrough of this repository, enrol now.
To run the application, you must install the libraries listed in requirements.txt
.
pip install -r requirements.txt
Then run the streamlit run
command to start the app on http://localhost:8501/.
streamlit run bot.py
To run the solution tests:
-
Create Neo4j instance with the
recommendations
dataset -
Run the Cypher to add embeddings and create the vector index.
-
Create a virtual environment and install the requirements.
pip install -r requirements.txt
-
Install
pytest
pip install pytest
-
Create a
secrets.toml
file in the.streamlit
directory. Usesecrets.toml.example
as a template. -
Run the tests
pytest