RAG_With_Knowledge_Graph is an advanced AI-driven customer support system that integrates LangChain, Neo4j, and Google Generative AI to deliver efficient and dependable customer assistance. The application features a FastAPI backend and a Streamlit frontend.
- AI-Powered Assistance
- 24/7 Support Availability
- Comprehensive Customer Query Resolution
-
Clone the repository:
git clone https://github.com/SURESHBEEKHANI/RAG_With_Knowledge_Graph.git cd RAG_With_Knowledge_Graph
-
Set up a virtual environment and activate it:
python -m venv venv source venv/bin/activate # Use `venv\Scripts\activate` on Windows
-
Install required dependencies:
pip install -r requirements.txt
-
Configure environment variables:
export NEO4J_URI="your_neo4j_uri" export NEO4J_USERNAME="your_neo4j_username" export NEO4J_PASSWORD="your_neo4j_password" export GROQ_API_KEY="your_groq_api_key" export GEMINI_API_KEY="your_gemini_api_key"
-
Navigate to the backend directory:
cd backend
-
Launch the FastAPI application:
uvicorn backend:app --host 127.0.0.1 --port 9999
-
Navigate to the frontend directory:
cd ../frontend
-
Start the Streamlit application:
streamlit run app.py
- Open your web browser and go to
http://127.0.0.1:8501
to access the Streamlit frontend. - Interact with the chatbot by entering your queries into the input box.
- The chatbot will respond with AI-generated answers based on context and data retrieved from the Neo4j graph database.
backend.py
: Implementation of the FastAPI backend.app.py
: Implementation of the Streamlit frontend.Graprag.py
: Core logic for query processing and data retrieval.
Check out the video demonstration of the project:
This project is licensed under the MIT License.