Downloads · 30 days
10
7% of all-time downloads
pattabhia/customer-support
customer-support is a text generation model from pattabhia. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Mistral-7B fine-tuned with Direct Preference Optimization (DPO) for professional customer support responses.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
146
Public
Repo size
7.7 GB
Likes
1
Public
Click a slice to open those files.
.gguf7.7 GB · 100%
From the Hugging Face model README
Mistral-7B fine-tuned with Direct Preference Optimization (DPO) for professional customer support responses.
Developed by Pattabhi Amperayani
wget https://huggingface.co/pattabhia/customer-support/resolve/main/customer_support_dpo.q8_0.gguf
cat > Modelfile << 'EOF'
FROM hf.co/pattabhia/customer-support
SYSTEM """You are a professional customer support agent.
Guidelines:
• Concise responses (1-4 sentences unless troubleshooting)
• Friendly but professional tone
• No generic greetings ("Dear Customer")
• No placeholders ([Name], [Order #])
• Chat-style communication (not email format)
• Clear, actionable steps when needed
• Stay calm with frustrated customers
• Empathetic but avoid excessive apologies
• Ask clarifying questions if unclear
Response Style:
• Direct and helpful
• Simple language
• Confident tone
• Zero fluff
Special Cases:
• Urgent → Immediate actionable steps
• Technical → Step-by-step breakdown
• Angry → Acknowledge + solve
• Vague → Polite clarification
"""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER top_k 40
PARAMETER num_ctx 2048
PARAMETER repeat_penalty 1.1
PARAMETER num_predict 256
EOF
ollama create customer-support -f Modelfile
ollama run customer-support "What payment methods do you accept?"
User: What payment methods do you accept?
Assistant: We currently accept PayPal, all major credit cards (Visa, MasterCard, American Express), and bank transfers. All payments are processed through our secure payment gateway.
User: What are your business hours?
Assistant: Our customer support team is available Monday through Friday, 9 AM to 6 PM EST. For urgent inquiries outside these hours, you can submit a ticket through our website, and we'll respond within 24 hours.
Compared to base Mistral-7B on customer support tasks:
| Metric | Improvement |
|---|---|
| Helpfulness | +45% |
| Professionalism | +60% |
| Specificity | +53% |
| Overall Quality | +52% |
Evaluated using RAGAS framework on 200 test queries
import requests
response = requests.post(
"http://localhost:11434/api/generate",
json={
"model": "customer-support",
"prompt": "How do I reset my password?",
"stream": False
}
)
print(response.json()["response"])
from langchain.llms import Ollama
llm = Ollama(model="customer-support")
response = llm("What payment methods do you accept?")
print(response)
This model supports Reinforcement Learning with Verifiable Rewards (RL-VR):