feat: 벡터 검색 RPC 래퍼와 자연어 변환기 추가 - #20
Merged
Merged
Conversation
17 tasks
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.
📌 관련 이슈
closes #19
📝 작업 내용
추천 파이프라인 4개 에이전트(discovery, score, alternative, collaborative)가 공통으로 사용할 헬퍼를 일괄 구현. 순수 라이브러리 모듈만 추가하며 에이전트는 후속 PR에서 구현.
추가 모듈
db.vector_searchservices.feature_text_builderservices.review_chunkerservices.unified_text_builderservices.job_updater설계 결정
vector_search는 TypedDict 반환 타입으로 IDE 자동완성 지원feature_text_builder는 한국어 자연 표현 사용 (예:"coverage": "높음"→ "커버력이 높은") → 리뷰 어휘와 정합성 확보unified_text_builder는 LLM/VLM 담당의ExtractedProduct그대로 사용.product_name(str),category["main"](dict 접근) 형태job_updater는 None 필드를 갱신하지 않아 부분 업데이트 안전.asyncio.to_thread로 동기 supabase-py 호출을 이벤트 루프 차단 없이 처리LLM/VLM 담당 영역과의 인터페이스
ExtractedProduct는 LLM/VLM이 정의한 형태 그대로 사용 (수정 X)agents/tools.py의search_ragplaceholder는 후속 PR에서 본 PR의db.vector_search.match_products를 wrap해서 구현 예정동작 확인 방법
cd AI python -m pytest tests/test_vector_search.py tests/test_feature_text_builder.py tests/test_review_chunker.py tests/test_unified_text_builder.py tests/test_job_updater.py -v📁 변경 파일
AI/db/vector_search.pyAI/services/feature_text_builder.pyAI/services/review_chunker.pyAI/services/unified_text_builder.pyAI/services/job_updater.pyAI/tests/test_vector_search.pyAI/tests/test_feature_text_builder.pyAI/tests/test_review_chunker.pyAI/tests/test_unified_text_builder.pyAI/tests/test_job_updater.py✅ 체크리스트