feat(followup): RAG 부활 + correctness 평가 + 카테고리 루브릭 + 대화 히스토리#64
Merged
Conversation
꼬리질문이 자료 근거 없이 답변 텍스트만 보고 생성되던 문제(Core가 context_document_ids 미발행 → RAG dead)를 해결하고, 평가/질문 품질을 끌어올린다. Core: - GenerateFollowupPayload 에 contextDocumentIds/parentCategory/history 추가 - SessionFollowupRequester: SessionContextRepository 로 doc ids(피드백 발행부 패턴), 최근 메시지 6개 history, 부모 질문 category 를 함께 발행 - QuestionsCallbackPayload.AnswerEvaluation 에 correctness 추가(대칭) AI: - GenerateFollowupRequest +parent_category/history (context_document_ids 는 기존) - AnswerEvaluation +correctness(0~5, RAG 컨텍스트 없으면 null) - 프롬프트: correctness 축 + 카테고리별 루브릭(STAR 는 인성형, 기술형은 정확성·깊이) + 히스토리 중복 회피 - 체인/컨슈머: parent_category·history 전달. RAG 는 doc ids 수신 시 자동 활성(하이브리드+리랭크) 테스트: AI 208 passed, backend compile + QuestionsCallbackServiceTest BUILD SUCCESSFUL. DB 변경 없음(평가 영속/피드백 재사용은 다음 작업). 프론트 변경 없음(내부 MQ 계약만). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
꼬리질문이 자료 근거 없이 답변 텍스트만 보고 생성되던 문제(Core가 context_document_ids 미발행 → RAG dead)를 해결하고, 평가/질문 품질을 끌어올린다.
Core:
AI:
테스트: AI 208 passed, backend compile + QuestionsCallbackServiceTest BUILD SUCCESSFUL. DB 변경 없음(평가 영속/피드백 재사용은 다음 작업). 프론트 변경 없음(내부 MQ 계약만).
변경 사항