feat: sync asset_hierarchy folder/project after embedding job#21
Merged
feat: sync asset_hierarchy folder/project after embedding job#21
Conversation
- sync_folder_project_rows_from_embedding_result from Chroma result ids - docs: week4-asset-hierarchy-embedding.md, PR draft week4-pr-asset-hierarchy.md - tests for folder/project sync Made-with: Cursor
Stop syncing asset_hierarchy folder/project rows from Chroma result ids and derive them deterministically from code document paths so tree-stage DB state and embedding flow stay consistent. Made-with: Cursor
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.
Summary
run_github_repo_embedding_job) 완료 후 Chromaresult["ids"]에서 folder·project id만 추출해asset_hierarchy를 갱신한다 (기존folder/project행 DELETE 후 INSERT).code행은 기존과 같이sync_code_rows_from_selected_assets로만 채운다. folder/project는 파이프라인이 만든 Chroma id와 DB를 맞춘다.week-issues/week4-asset-hierarchy-embedding.md참고.Changes
src/service/user/asset_hierarchy_sync.py:sync_folder_project_rows_from_embedding_result,_folder_project_rows_from_embedding_idssrc/service/github_embedding/service.py: 파이프라인 직후 위 동기화 호출tests/service/test_asset_hierarchy_sync_folder_project.py: 동기화 단위 테스트How to test
Related doc
week-issues/week4-asset-hierarchy-embedding.md