Skip to content

Feature/followup latency#96

Merged
csh1668 merged 2 commits into
devfrom
feature/followup-latency
Jun 4, 2026
Merged

Feature/followup latency#96
csh1668 merged 2 commits into
devfrom
feature/followup-latency

Conversation

@csh1668

@csh1668 csh1668 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

변경 사항

  • 타자기 연출 추가
  • 리랭커 제거

csh1668 added 2 commits June 5, 2026 00:24
P1(AI): followup RAG에서 실패·저속한 LLM 리랭커를 기본 비활성화(followup_rerank_enabled=false)하고 candidate 확장 없이 top_k 직접 검색. _build_rag_context 전체에 타임아웃(followup_rag_timeout_sec=1.5s) 폴백 추가 → 첫 토큰까지 ~3s에서 ~1.5s 목표.

P2(FE): SESSION_MESSAGE_DELTA가 짧은 질문에서 0.3s에 몰려 와도 보이도록 useTypewriter로 누적 텍스트를 점진 표시(StageQuestion/QuestionBubble). 긴 스트림은 남은 양 비례 step으로 따라잡아 지연 없음.
리랭커가 프로덕션에서 항상 실패→검색순서 폴백 중이라 가치 0에 ~1-2s만 소모. 모든 RAG 경로(질문풀·꼬리질문·피드백)가 이미 검색순서를 쓰고 있어 제거는 동작 무변경이며 지연·비용만 감소.

- rag/reranker.py, chain/prompts/rerank.py, test_reranker.py 삭제
- 3개 consumer: candidate_k 후보 fetch + rerank_hits 제거 → rag_top_k 직접 검색
- settings: rerank_enabled/rerank_candidate_k/followup_rerank_enabled 제거 (followup_rag_timeout_sec 타임아웃 안전망은 유지)
@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stackup Ready Ready Preview, Comment Jun 4, 2026 3:44pm

@csh1668 csh1668 merged commit fa79621 into dev Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant