CoolFace
Modelpublic

minuva/MiniLMv2-agentflow-v2

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
1likes68downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

LLM agent flow classification

This model identifies common events and patterns within the conversation flow. Such events include an apology, where the LLM acknowledges a mistake. The flow labels can serve as foundational elements for sophisticated LLM analytics.

It is a fined-tuned version of MiniLMv2-L6-H384. The quantized version in ONNX format can be found here

This model is only for the LLM agent texts in the dialog. For the user texts use this model.

Load the Model

py
from transformers import pipeline

pipe = pipeline(model='minuva/MiniLMv2-agentflow-v2', task='text-classification')
pipe("thats my mistake")
# [{'label': 'agent_apology_error_mistake', 'score': 0.9965628981590271}]

Categories Explanation

<details> <summary>Click to expand!</summary>

  • OTHER: Responses or actions by the agent that do not fit into the predefined categories or are outside the scope of the specific interactions listed.
  • agentapologyerror_mistake: When the agent acknowledges an error or mistake in the information provided or in the handling of the request.
  • agentapologyunsatisfactory: The agent expresses an apology for providing an unsatisfactory response or for any dissatisfaction experienced by the user.
  • agentdidntunderstand: Indicates that the agent did not understand the user's request or question.
  • agentlimitedcapabilities: The agent communicates its limitations in addressing certain requests or providing certain types of information.
  • agentrefusesanswer: When the agent explicitly refuses to answer a question or fulfill a request, due to policy restrictions or ethical considerations.
  • image_limitations": The agent points out limitations related to handling or interpreting images.
  • noinformationdoesnt_know": The agent indicates that it has no information available or does not know the answer to the user's question.
  • successandfollowup_assistance": The agent successfully provides the requested information or service and offers further assistance or follow-up actions if needed. </details>

<br>

Metrics in our private test dataset

Model (params)LossAccuracyF1
minuva/MiniLMv2-agentflow-v2 (33M)0.15400.96160.9618

Deployment

Check our llm-flow-classification repository for a FastAPI and ONNX based server to deploy this model on CPU devices.