Skip to content

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

HackathonLLM Project by ENM

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:

Pipeline

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:

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.

Usage of CodeGPT

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 image
  • Code generation support using the VSCode extension image

Installation Instructions

Backend

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-transformers

Create 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.py

Frontend

Position yourself in the folder, install dependencies and run with npm:

cd front
npm install
npm run build
npm run start

Contact

You might find us on x.com:

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages