Skip to content

fix(backend): add missing RAG_TOP_K config to restore app startup#43

Merged
youneedpython merged 1 commit into
devfrom
fix/backend-rag-startup-config
Jan 16, 2026
Merged

fix(backend): add missing RAG_TOP_K config to restore app startup#43
youneedpython merged 1 commit into
devfrom
fix/backend-rag-startup-config

Conversation

@youneedpython
Copy link
Copy Markdown
Owner

backend RAG 파이프라인 설정 누락으로 인해 발생한
애플리케이션 부팅 실패 문제를 수정하는 PR입니다.

병합 내용

  • app/core/config.pyRAG_TOP_K 설정 값 추가
  • 환경변수 기반 설정 값에 대해 정수(int) 타입으로 명시적 캐스팅 적용
  • Pinecone Retriever 초기화 단계에서 발생하던 ImportError 제거
  • Gunicorn worker 부팅 실패로 인한 HTTP 5xx 오류 해소

문제 원인

  • RAG 파이프라인에서 RAG_TOP_K 설정 값을 참조하나,
    app.core.config에 해당 값이 정의되어 있지 않아 ImportError 발생
  • 애플리케이션 시작 단계에서 예외가 발생하며 서버가 정상적으로 기동되지 않음

수정 목적

  • dev 환경에서 백엔드 서버 정상 기동 복구
  • RAG 파이프라인 초기화 안정성 확보
  • 설정 누락으로 인한 재발 가능성 제거

영향 범위

  • backend dev 환경에만 적용
  • RAG 관련 설정 로직에 한정된 수정
  • 기존 문서 인덱싱 파이프라인 및 비 RAG 기능에는 영향 없음

@youneedpython youneedpython self-assigned this Jan 16, 2026
@youneedpython youneedpython merged commit e96f934 into dev Jan 16, 2026
3 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