fix(chat): clean квартирография rendering in chat prompt v2 (#957) #1179
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1179
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/chat-prompt-quartirografia-957"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Live LLM chat rendered the recommended квартирография as a garbled rank-hyphen-type list —
2-1-к,3-2-к,4-3-к,5-80+ м²(= "rank 2: 1-к", …), which reads like junk codes. Fix: add rule 6 tochat_system@v2— list квартирография/segments by clean TYPE (студия / 1-к / 2-к / 3-к / 80+ м²) + share %, no ordinal-number-hyphen-type concatenation. Bumped prompt version 1→2 (versioned-prompt convention;render()uses latest by name).Data was always correct (numbers verbatim from the engine, §16) — this is purely the LLM's prose formatting.
Test plan
uv run pytest tests/services/llm/ tests/services/chat/ tests/api/v1/test_chat.py→ 125 passedchat_systemversion==2 + the formatting rule (anti-example «2-1-к») + that the core hard-rules surviveRefs #957
Live chat rendered the recommended unit-mix as a garbled rank-hyphen-type list ("2-1-к", "3-2-к" = "rank 2: 1-к"). Add rule 6 to chat_system@v2: list квартирография/segments by clean TYPE (студия / 1-к / 2-к / 3-к / 80+ м²) + share %, no ordinal-number-hyphen-type concatenation. Bumped prompt version 1->2 (versioned-prompt convention). Test locks v2 + the rule. Refs #957