Skip to content

130 vectordb 유연성 개선 refactor #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ehddnr301
Copy link
Collaborator

#️⃣ Issue Number

📝 요약(Summary)

  • CLI에 --vectordb-type(faiss/pgvector) 및 --vectordb-location(FAISS 디렉토리 경로 또는 PostgreSQL 연결 문자열) 옵션을 추가하여 사용자가 벡터 DB 종류와 위치를 유연하게 선택할 수 있도록 개선했습니다.
  • 벡터 DB 초기화 로직을 llm_utils/vectordb 하위 모듈로 분리해 factory.py, faiss_db.py, pgvector_db.py 파일로 구성

💬 To Reviewers (선택)

  • pgvector.sh 실행 후 명령어 테스트 부탁드립니다.
  • lang2sql query "고객 데이터를 기반으로 유니크한 유저 수를 카운트하는 쿼리" --vectordb-type pgvector --vectordb-location "postgresql://postgres:postgres@localhost:5432/postgres"

PR Checklist

  • TBD

reference) How to Code Review

  • 따봉(👍): 리뷰어가 리뷰이의 코드에서 칭찬의 의견을 남기고 싶을 때 사용합니다.
  • 느낌표(❗): 리뷰어가 리뷰이에게 필수적으로 코드 수정을 요청할 때 사용합니다.
  • 물음표 (❓): 리뷰어가 리뷰이에게 의견을 물어보고 싶을 때 사용합니다.
  • 알약 (💊): 리뷰어가 리뷰이의 코드에서 개선된 방법을 제안하지만 그것의 반영이 필수까지는 아닐 때 사용합니다.

- requirements.txt에 pgvector 및 langchain-postgres 패키지 추가
- CLI에 벡터 데이터베이스 타입 및 경로 설정 옵션 추가
- 벡터 데이터베이스 로드 및 생성 로직을 새로운 모듈로 분리하여 FAISS와 pgvector 지원
- pgvector를 실행하기 위한 Docker 스크립트 추가
- README에 pgvector 지원 및 사용 방법에 대한 설명 추가
@ehddnr301 ehddnr301 linked an issue Jul 13, 2025 that may be closed by this pull request
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.

VectorDB 유연성 개선 (refactor)
1 participant