-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] 벡터 + 키워드 하이브리드 검색 구현 #30
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
567ec74
fix: 하이브리드 점수와 벡터 기준 fallback 개선
kimssirr 717258f
feat: 벡터, 키워드 하이브리드 검색 구현 1차
kimssirr 22e8d56
feat: 질문 확장 검색과 답변 근거 처리 개선
kimssirr 309490d
Update chat_service.py
kimssirr 4dbf8da
fix: 불필요한 검색 표현 보강 제거
kimssirr a78676a
fix: 하이브리드 검색 외 변경 제거
kimssirr bb23f92
Merge branch 'dev' into feat/#28
kimssirr aeeffcc
fix: keep chat db session open for finalization
kimssirr 5a16a77
Merge branch 'dev' into feat/#28
kimssirr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQL 쿼리 내에서
to_tsvector를 검색 시마다 매번 호출하는 방식은 성능상 큰 병목이 될 수 있습니다. 특히 현재 쿼리에서는SELECT,ORDER BY,WHERE절에서 반복적으로 계산되고 있어 데이터량이 많아질 경우 인덱스를 활용하지 못하고 검색 속도가 급격히 저하됩니다.개선 제안:
regulation_chunk테이블에tsvector타입의 컬럼을 추가하고, 데이터 삽입/수정 시 미리 계산하여 저장하십시오.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 수정해 주신건가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새 작업이 필요하다 생각해 새 이슈로 팠습니다! 이 브랜치 머지 후 작업하려구요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
알겠습니다!