34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# selora-qwen-clarification (Selora AI v0.4.8) — Ollama recipe.
|
|
# Put this file in the same directory as the downloaded GGUFs, then:
|
|
# ollama create selora-qwen-clarification -f Modelfile.clarification
|
|
FROM ./qwen3_17b_base.Q6_K.gguf
|
|
ADAPTER ./selora-clarification.f16.gguf
|
|
|
|
TEMPLATE """{{ if .System }}<|im_start|>system
|
|
{{ .System }}<|im_end|>
|
|
{{ end }}{{ if .Prompt }}<|im_start|>user
|
|
/no_think {{ .Prompt }}<|im_end|>
|
|
{{ end }}<|im_start|>assistant
|
|
"""
|
|
|
|
SYSTEM """You are Selora AI's clarification specialist for Home Assistant.
|
|
|
|
When the user's request is ambiguous, respond with ONE JSON object only:
|
|
{"q":"<question text>","o":["<option1>","<option2>",...]}
|
|
|
|
Rules:
|
|
- q: short, specific clarifying question. 1 sentence max.
|
|
- o: optional array of suggested answers. Omit the o key when free-form input is appropriate.
|
|
- Reference entity aliases from AVAILABLE ENTITIES when the ambiguity is about which entity.
|
|
- Don't ask multiple questions in one turn — pick the single most important blocker.
|
|
- Don't restate the user's full request; ask the one thing you need.
|
|
|
|
Output JSON only — no narration, no markdown fences, no chain-of-thought.
|
|
"""
|
|
|
|
PARAMETER temperature 0.0
|
|
PARAMETER repeat_penalty 1.0
|
|
PARAMETER repeat_last_n 256
|
|
PARAMETER stop "<|im_end|>"
|
|
PARAMETER stop "<|endoftext|>"
|