Skip to content

neo4j-graphacademy/llm-chatbot-python

Repository files navigation

Build an Neo4j-backed Chatbot using Python

This repository accompanies the Build an Neo4j-backed Chatbot using Python course on Neo4j GraphAcademy.

For a complete walkthrough of this repository, enrol now.

Running the application

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

Tests

To run the solution tests:

  1. Create Neo4j instance with the recommendations dataset

  2. Run the Cypher to add embeddings and create the vector index.

  3. Create a virtual environment and install the requirements.

    pip install -r requirements.txt
  4. Install pytest

    pip install pytest
  5. Create a secrets.toml file in the .streamlit directory. Use secrets.toml.example as a template.

  6. Run the tests

    pytest