feat(backend): integrate pinecone-based RAG pipeline#41
Merged
Conversation
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.
✨ 변경 사항 요약
본 PR에서는 백엔드 챗 API에 Pinecone 기반의
Retrieval-Augmented Generation(RAG) 파이프라인을 통합했습니다.
기존의 LLM 단독 응답 구조에서 벗어나,
사용자 질문에 대해 Pinecone VectorDB에 저장된 법률 문서 조각을 검색한 뒤
해당 문서를 근거로 답변을 생성하도록 개선했습니다.
🧠 주요 변경 내용
app/core/config.py에서 일원화하여 환경별 관리 가능하도록 구성🏗️ 아키텍처 설계 포인트
scripts/indexing)은 변경 없음🚀 dev 환경 검증 방법
Retrieved N documents from Pinecone🔮 후속 작업 (본 PR 범위 외)