A RAG (Retrieval-Augmented Generation) based support agent that learns from resolved Zendesk tickets to provide accurate responses to new support queries.
- Fetches resolved tickets from Zendesk
- Builds a knowledge base using RAG
- Processes open tickets and suggests responses
- Interactive mode for testing responses
- Environment variable configuration for sensitive data
-
Clone the repository:
git clone https://github.com/djpapzin/rag-based-support-agent.git cd rag-based-support-agent -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env
Edit
.envwith your configuration values.
-
Process resolved tickets to build knowledge base:
python -m src.main
-
Enter interactive mode to test responses:
python -m src.main --interactive
The following environment variables can be configured in .env:
ZENDESK_API_URL: Your Zendesk API URLZENDESK_API_KEY: Your Zendesk API keyOPENAI_API_KEY: Your OpenAI API keyHUGGINGFACE_API_KEY: Your Hugging Face API keyVECTOR_STORE_PATH: Path to store vector embeddings (default: "data/vector_store")
MIT License