Project designed for LLMHackathon by CodeGPT, GuruSup and Mistral. Project is made from scratch and without templates in NextJS (frontend) and Python (backend). The project automatically processes customer support tickets aided by LLMs and inside logic. The pipeline can be described as follows:
When a ticket is created by a user, it is automatically processed by a series of models in order to classify it with different labels:
- Sentiment Analysis: DistilBert Cased Sentiment via HuggingFace Inference API
- Category Classification: Mistral AI Agent using Mistral Nemo. (Agent ID: ag:fc4e91ab:20241026:ticketcategorizer:245e9828)
- Priority Classification: Mistral AI Agent using Mistral Nemo. (Agent ID: ag:fc4e91ab:20241026:untitled-agent:592cd06d)
- Language Detection: Facebook's FastText Language Identification via HuggingFace Inference API
After this initial processing, the system can either auto-answer the ticket via LLM or generate a template response for human review, based on the frontend configuration. These automated actions are determined by filters that consider the ticket's classifications (priority, category, sentiment, etc.).
In order to generate a direct answer or a template for the Ticket, the main LLM (which is a Mistral AI Agent using Mistral Large 2, Agent ID: ag:fc4e91ab:20241026:hackathonllm:07fc6cf1) uses:
- A company context file: Admins can upload this through the dashboard frontend, and it's stored on Amazon S3. When a response is needed, the system retrieves this file to access company information.
- Similar tickets: The system maintains clusters of previously closed tickets. Using embeddings of ticket descriptions stored in these clusters, it performs semantic similarity searches. When matches exceed a certain threshold, it uses those previous answers to provide additional context to the LLM.
- The current Ticket's details: Along with the ticket information itself, the system includes instructions about whether to provide a direct answer or use a template format.
The usage of CodeGPT was one of the requirements in order to participate in this Hackathon. Our team used CodeGPT for the following use cases:
- Improvement and iteration of prompts for Mistral AI

- Code generation support using the VSCode extension

In order to run the FastAPI for the backend, position yourself in the folder and install python dependencies:
cd backend
pip install uvicorn boto3 fastapi requests peewee python-multipart sentence-transformersCreate the database (must have an empty folder named "data") with:
python database.py(In case of error, run from the project's root folder)
Run the API:
python main.pyPosition yourself in the folder, install dependencies and run with npm:
cd front
npm install
npm run build
npm run startYou might find us on x.com:



