Merged
Conversation
- SummaryRepository.find_summaries_for_trend(): mid 레벨 one_line_summary + keywords 배치 조회 - app/core/prompts/trend_top_posts.py: 서사 요약 프롬프트 + 일단위 시간 범위 레이블(M월 D일 HH시~HH시) + 이전 기간 비교 섹션 - TopPostsSummaryGenerator.generate(): prev_summary 주입으로 이전 기간 차이점 서술 지원 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SummaryRepository.find_summaries_for_trend()추가 — DynamoDB mid 레벨에서one_line_summary,keywords,tags,category배치 조회app/core/prompts/trend_top_posts.py신규 — 서사 요약 프롬프트, 일단위 시간 범위 레이블(M월 D일 HH시~HH시), 이전 기간 비교 섹션TopPostsSummaryGenerator.generate()신규 —prev_summary옵셔널 파라미터로 이전 기간 차이점 서술 지원, 빈 입력 → None, LLM 실패 →AIUpstreamError/AITimeoutError전파Test plan
pytest tests/test_trend_top_posts_summary.py— 6개 케이스 통과 확인pytest tests/test_summary_repository.py— find_summaries_for_trend mid 레벨 조회 확인pytest -q전체 399개 통과ruff check . && black --check .클린🤖 Generated with Claude Code