Skip to content

Instantly share code, notes, and snippets.

View Kjdragan's full-sized avatar

Kevin Dragan Kjdragan

  • Houston
  • 11:05 (UTC -06:00)
View GitHub Profile
@Kjdragan
Kjdragan / llm_classification_system.py
Last active July 6, 2024 22:27 — forked from daveebbelaar/llm_classification_system.py
Classification using LLMs and the Instructor library (think agentic email, message, commnet reviews)
# --------------------------------------------------------------
# Customer Support Ticket Classification System
# --------------------------------------------------------------
import instructor
from pydantic import BaseModel, Field
from openai import OpenAI
from enum import Enum
from typing import List