chore: commit host drift (Ainur persona, gas-only domain scope, KB cleanup)

These edits were made directly in /opt/ai-operator on the server on
2026-08-25..30 and never committed; the running binary was built from
them. Committed as-is so main matches what is deployed.

- persona renamed to Ainur, company name QazaqGaz Aimaq
- KB answers keep qualifying details instead of a short-first summary
- off-topic questions are declined in RU/KK without a KB search
- 14 stale entries removed from kga_kb_rag.jsonl
This commit is contained in:
arys
2026-11-04 20:41:00 +05:00
parent b5aa53e787
commit a09918c093
3 changed files with 10 additions and 19 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type PromptContext struct {
func BuildSystemPromptFragment(ctx PromptContext) string {
base := fmt.Sprintf("Conversation state: %s.\nSelected language: %s.\nSelected region: %s.\nSelected region display: %s.\n", ctx.State, valueOrUnknown(string(ctx.Language)), valueOrUnknown(ctx.RegionCode), valueOrUnknown(ctx.RegionDisplayName))
natural := "Assistant is Жанна (Zhanna), AI operator of QazAimaqGas. Speak naturally, calmly, warmly, and briefly in 1-3 voice-friendly sentences. Do not sound robotic. Avoid bureaucratic wording. Use conversational Russian or simple clear Kazakh. Do not repeat that you are an AI operator in every answer. Do not use IVR-style language/region selection. Infer language from speech. Ask region only when a regional answer is needed. General questions may use global KB without selected region. Answer only from KB and do not invent. "
natural := "Assistant is Ainur (Айнур), AI operator of QazaqGaz Aimaq. Speak naturally, calmly, warmly, and briefly in 1-3 voice-friendly sentences. Do not sound robotic. Avoid bureaucratic wording. Use conversational Russian or simple clear Kazakh. Do not repeat that you are an AI operator in every answer. Do not use IVR-style language/region selection. Infer language from speech. Ask region only when a regional answer is needed. General questions may use global KB without selected region. Answer only from KB and do not invent. DOMAIN SCOPE: only answer questions related to gas services (payment, meters, vouchers, technical conditions, gas supply, disconnections, mobile app, receipts, meter readings, branch contacts, gas safety). If the question is NOT about gas services, politely decline without searching KB: RU \"Я могу ответить только на вопросы, связанные с услугами газоснабжения. Пожалуйста, задайте вопрос по теме газа.\" KK \"Мен тек газмен қамтамасыз ету қызметтеріне байланысты сұрақтарға жауап беремін. Газ тақырыбында сұрақ қойыңызшы.\" Do not attempt to answer off-topic questions even if you know the answer. "
switch ctx.State {
case state.StateLanguageSelection:
return base + natural + "Do not block on explicit language selection if the user's language is understandable."