Skip to content

feat: vectorDB 모듈 초기 통합 - #2

Merged
harim789 merged 26 commits into
developfrom
feature/vectordb-initial-integration
May 24, 2026
Merged

feat: vectorDB 모듈 초기 통합#2
harim789 merged 26 commits into
developfrom
feature/vectordb-initial-integration

Conversation

@harim789

@harim789 harim789 commented May 24, 2026

Copy link
Copy Markdown
Collaborator

#️⃣ 연관된 이슈

#1


📝 작업 내용

개인 레포(capstone-vectordb)의 vectorDB 작업물을 팀 레포 AI/vectordb/ 하위로 통합한다.

  • 인프라: Docker Compose 기반으로 PostgreSQL 16, Qdrant, FastAPI 컨테이너 일괄 기동
  • SQL 스키마: users, user_profile, brand, product, product_feature, review, user_product, user_brand_preference, user_context_rag (9개 테이블) + 시드 데이터
  • 벡터 저장소: Qdrant 8개 컬렉션 — product_vectors_{category} 3종 (8/5/4차원), user_vectors_{category} 3종, review_embeddings, purchase_reasons (768차원)
  • 임베딩: 한국어 문장 임베딩에 jhgan/ko-sroberta-multitask 적용
  • FastAPI API: /products/upsert, /users/{id}/vector, /search/similar-products, /search/similar-users, /reasons/retrieve, /users/{id}/reasons, /health
  • 서비스 레이어: product / user / review / reason / search 5개 모듈
  • 운영 스크립트: Qdrant 컬렉션 초기화(init_collections.py), SQL→Qdrant 전체 재동기화(reindex_all.py)
  • 통합 테스트: pytest 기반 5건 모두 통과 (health, user vector 조회, 유사 상품 검색, RAG 검색, 유사 사용자 검색)

동작 확인 방법

cd AI/vectordb
docker compose up -d
docker compose exec api python scripts/init_collections.py
docker compose exec api python scripts/reindex_all.py
docker compose exec api python -m pytest tests/ -v

→ 5건 모두 PASSED 확인.

harim789 added 26 commits May 17, 2026 19:53
…ector_store.py로 이름 수정(pip가 설치한 실제 라이브러리와 이름이 같아 충돌하기 때문)
git-subtree-dir: AI/vectordb
git-subtree-mainline: 6510189
git-subtree-split: ca51c5b
@harim789 harim789 self-assigned this May 24, 2026
@harim789 harim789 added the feat 새로운 기능 추가 label May 24, 2026
@harim789
harim789 merged commit fd90d96 into develop May 24, 2026
1 check failed
@harim789 harim789 linked an issue May 24, 2026 that may be closed by this pull request
10 tasks
@harim789
harim789 requested review from Copilot and removed request for Copilot May 24, 2026 06:55
@harim789
harim789 deleted the feature/vectordb-initial-integration branch May 24, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: vectorDB 모듈 통합

1 participant