This application is a multi-agent system connected to a Neo4j graph database for network management. It uses Chainlit for chat interactions and requires an OpenAI API key for operation. Based on LangGraph's implementation for Neo4j connection.
-
Set up the environment variables:
- Navigate to the
llms_graphs
folder. - Rename the
.env.empty
file to.env
. - Open the
.env
file and set your OpenAI API key and Neo4j database credentials:OPENAI_API_KEY=your_openai_api_key_here NEO4J_URI=bolt://localhost:7687 NEO4J_USERNAME=your_neo4j_username NEO4J_PASSWORD=your_neo4j_password NEO4J_DATABASE=your_neo4j_database_name
- Navigate to the
-
Install dependencies:
- Ensure you have all the required dependencies installed. You can use
pip
to install them:pip install -r requirements.txt
- Ensure you have all the required dependencies installed. You can use
To start the application, simply run the following command:
chainlit run chatapp.py
This will start the Chainlit server and you can interact with the system through the chat interface.
- The application visualizes the Neo4j graph and generates responses based on the database schema and user queries.
- Make sure your Neo4j database is running and accessible.
Enjoy using the GraphRAG App!