feat: 룰 스코어링(3.2), 5개 지표 산식(4.2), Q&A 생성(7.4), 출처 태그 추가 - #7
Merged
Merged
Conversation
- app/scoring 패키지 신설 - seasonal.py: 농사로 기준 월별 제철 식재료 (12개월) - kamis.py: KAMIS API 가격 스코어 (키 없으면 0.5 반환) - scorer.py: 제철(0.30)·가격(0.25)·재고(0.30)·선호(0.10)·예산(0.05) 가중합 - metrics.py: 지역농산물활용률·제철반영률·1인단가·폐기감소율·예산절감율 - nodes.py: score_ingredients_single/score_ingredients, generate_qa, compute_metrics 노드 추가 - nodes.py: generate_single_meal 프롬프트에 출처 태그([학교재고]/[농사로]/[KAMIS]) 규칙 삽입 - graph.py: 단건/월간 그래프에 스코어링·Q&A·지표 계산 노드 연결 - api/agent.py: 응답에 qa_pairs, meal_metrics 필드 추가 - config.py: KAMIS_API_KEY 환경변수 추가 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
app/scoring패키지 신설 — 룰 기반 식자재 스코어링(LLM 불사용), KAMIS 선택적 연동reason필드에[학교재고]·[농사로]·[KAMIS]출처 태그 삽입변경 파일
app/scoring/seasonal.pyapp/scoring/kamis.pyapp/scoring/scorer.pyapp/scoring/metrics.pyapp/agent/nodes.pygenerate_single_meal프롬프트 수정app/agent/graph.pyapp/api/agent.pyqa_pairs,meal_metrics추가app/core/config.pyKAMIS_API_KEY환경변수 추가Test plan
/agent/recommend-meal호출 →reason에 출처 태그 포함 여부 확인qa_pairs6개,meal_metrics5개 키 존재 여부 확인🤖 Generated with Claude Code