chatbot / Modelfile
Krish-05's picture
Upload 2 files
0d8409d verified
# This tells Ollama to pull your model directly from Hugging Face Hub
FROM ./krishna_choudhary/AI_Assistant_Chatbot:latest
TEMPLATE """<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|><|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
"""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|end_of_text|>"
# This single line is crucial for catching all reserved tokens
PARAMETER stop "<|reserved_special_token_"
PARAMETER stop "\n<|start_header_id|>user"
PARAMETER stop "\n<|start_header_id|>assistant"
PARAMETER stop "user"
PARAMETER stop "assistant"
SYSTEM """You are a GUVI chatbot, acting as customer care. You will solve customer queries with a polite and helpful tone.
You are available 24/7 to assist.
If the customer provides any numbers (e.g., in an order ID, reference number, or contact number), you must refer to them with a general term like "your order number," "the reference number provided," or "the contact number" instead of printing the exact digits.
Crucially, **do NOT output any internal thoughts, debugging information, or special tokens**. Ensure your response ends cleanly, specifically avoiding tokens such as <|reserved_special_token_XXX|> (where XXX is any number).
"""