Skip to content

feat(v0.6.1): real "detailed" answer style — reproduce source detail, not a summary#1074

Merged
Hashevolution merged 1 commit into
mainfrom
feat/v0.6.1-detailed-answer-style
Jun 26, 2026
Merged

feat(v0.6.1): real "detailed" answer style — reproduce source detail, not a summary#1074
Hashevolution merged 1 commit into
mainfrom
feat/v0.6.1-detailed-answer-style

Conversation

@Hashevolution

Copy link
Copy Markdown
Owner

Summary

After an image's full text was ingested, asking about it in detail only ever got a one-line summary back.

Root cause: the document's full content (a schedule table) is stored + retrieved fine, but response_style="detailed" collapsed to NATURAL (the v2 redesign mapped brief/standard/detailed→NATURAL), so no style told the synth LLM to reproduce the source instead of condensing it. The chat UI also never sends response_style — the engine auto-classifies it, and the classifier only emitted terse/natural.

Fix (no chat.js change — keyword-driven, automatic):

  • answer_style_classifier: FAST_DETAILED_PATTERNS checked first — a query asking for full detail (상세히/자세히/구체적으로/낱낱이/전체 내용/원문/그대로 · in detail/verbatim/full table…) → "detailed".
  • response_style: add a real DETAILED_PRESET (rule_text: reproduce the relevant source verbatim — keep tables/rows, every number/date/count/place; do not summarise) and map detailed → it. brief/standard still → NATURAL; empty/unknown → NATURAL (byte-identical, no regression).

Verification (e2e)

전장연 7월 1일~2일 전체 일정 상세히 알려줘[STYLE] …→ detailed (fast) → the answer is now the FULL schedule table (7 rows: times, 인원/휠체어 counts, 서울지방조달청/잠수교/한국재정정보원…), vs the prior one-line summary.

  • test_response_style 27/27 (updated: brief/standard→natural kept, detailed→DETAILED_PRESET), test_answer_style_classifier 17/17 (+detail-request test), test_measurement_critical_surfaces 33/33.

How to use

Just phrase the question with a detail cue — "상세히", "전체 내용", "원문 그대로", "구체적으로", "in detail". No UI toggle needed.

Quality delta

Quality delta: exempt (label: feat) — response-style/format layer (verbosity), opt-in, default path byte-identical; core/retrieval + core/graph traversal + core/reasoning 0 lines.

🤖 Generated with Claude Code

… not a summary

Operator: after an image's full text was ingested, asking about it in
detail only ever got a one-line summary back. Root cause: the document's
full content (e.g. a schedule table) is stored + retrieved fine, but
`response_style="detailed"` collapsed to NATURAL (the v2 redesign mapped
brief/standard/detailed→NATURAL), so there was no style that tells the
synth LLM to REPRODUCE the source content instead of condensing it. The
chat UI also never sends response_style — the engine auto-classifies it,
and the classifier only emitted terse/natural.

Fix (no chat.js change — keyword-driven, automatic):
- answer_style_classifier: FAST_DETAILED_PATTERNS checked first — a query
  asking for full detail (상세히/자세히/구체적으로/낱낱이/전체 내용/원문/
  그대로 · in detail/verbatim/full table…) classifies as "detailed".
- response_style: add a real DETAILED_PRESET (rule_text: reproduce the
  relevant source verbatim — keep tables/rows, every number/date/count/
  place; do not summarise/compress) and map "detailed" → it. brief/
  standard still → NATURAL; empty/unknown → NATURAL (byte-identical, no
  regression).

Verified e2e: "전장연 7월 1일~2일 전체 일정 상세히 알려줘" → [STYLE]
…→ detailed (fast) → the answer is now the FULL schedule table (7 rows:
times, 인원/휠체어 counts, 서울지방조달청/잠수교/한국재정정보원…) vs the
prior one-line summary.

- core/answer_style_classifier.py + core/response_style.py
- tests updated (brief/standard→natural kept; detailed→DETAILED_PRESET)
  + new detail-request classification test
core/retrieval + core/graph traversal + core/reasoning 0 lines (these are
the response-style/format layer).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B7gaaBkpM3xYTzxhYrGHnR
@Hashevolution
Hashevolution merged commit cbc8e9b into main Jun 26, 2026
2 of 4 checks passed
@Hashevolution
Hashevolution deleted the feat/v0.6.1-detailed-answer-style branch June 26, 2026 04:48
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant