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.txtThen run the streamlit run command to start the app on http://localhost:8501/.
streamlit run bot.pyTo run the solution tests:
-
Create Neo4j instance with the
recommendationsdataset -
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
pytestpip install pytest
-
Create a
secrets.tomlfile in the.streamlitdirectory. Usesecrets.toml.exampleas a template. -
Run the tests
pytest