Phase 25: RAG sources in collapsible box + Korean thinking enforcement
- agent_service: yield {"__sources": [...]} token instead of __meta for sources
- agent_service: inject Korean-only rule at top of system message before date
- config.py: strengthen Korean thinking instruction in system prompt
- ROADMAP: add Phase 25 entry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -393,6 +393,22 @@ cd youlbot-webui && python app.py
|
||||
|
||||
---
|
||||
|
||||
## ✅ Phase 25 — RAG 출처 전용 접기/펼치기 박스
|
||||
|
||||
**배경**: RAG 검색 출처가 사고 과정(thinking)과 같은 `__meta` 토큰으로 섞여 "💭 분석 완료" 박스 안에 표시되던 문제.
|
||||
|
||||
**구현 내용**:
|
||||
- `agent_service.py`: 출처를 `{"__meta": "..."}` 개별 토큰 대신 `{"__sources": [{filename, page}, ...]}` 단일 토큰으로 yield
|
||||
- `youlbot-webui/app.py`:
|
||||
- `_sources_html()` 헬퍼 추가 — `<details>` 기반 접기/펼치기
|
||||
- chatbot 바로 아래 `source_box = gr.HTML()` 컴포넌트 추가
|
||||
- `respond()`에서 `__sources` 토큰 처리 → 답변 완료 후 "📄 출처 (N개)" 박스 표시
|
||||
- `youlbot-telegram/bot.py`: `__sources` 토큰 skip 처리 추가
|
||||
|
||||
**난이도**: 하 | **임팩트**: 중간 (UX 개선 — 출처와 사고 과정 분리)
|
||||
|
||||
---
|
||||
|
||||
## Phase 20 — RAG 품질 자동 평가 (RAGAS) ★☆☆
|
||||
|
||||
**배경**: 청킹 전략·검색 파라미터·Reranker 변경 시 답변 품질이 실제로 나아졌는지 수치로 확인할 방법이 없다.
|
||||
@@ -484,6 +500,7 @@ Phase 20 RAGAS 평가 → Phase 15 (모델선택) → Phase 16 (Docke
|
||||
| Phase 22 REST API | ✅ 완료 | — | — | — |
|
||||
| Phase 23 WebUI 분리 | ✅ 완료 | — | — | — |
|
||||
| Phase 24 사고 과정 UI 분리 | ✅ 완료 | — | — | — |
|
||||
| Phase 25 RAG 출처 전용 박스 | ✅ 완료 | — | — | — |
|
||||
| Phase 20 RAGAS 평가 | 🔲 신규 | 중간 | 중간 | 1순위 |
|
||||
| Phase 15 모델 선택 | 🔲 미완 | 중간 | 중간 | 4순위 |
|
||||
| Phase 16 Docker | 🔲 미완 | 높음 | 중간 | 5순위 |
|
||||
|
||||
Reference in New Issue
Block a user