-
Notifications
You must be signed in to change notification settings - Fork 0
Edit: 코드 리펙토링 및 v0.0.5 업데이트 #7
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
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,10 @@ | ||
| rag_preprocessed_data.csv | ||
| rag_preprocessed_data.json | ||
| .env | ||
| chroma_db/ | ||
| chroma_db/ | ||
|
|
||
| __pycache__/ | ||
| *.pyc | ||
| .DS_Store | ||
| *.egg-info/ | ||
| .venv/ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,38 @@ | |
|
|
||
| --- | ||
|
|
||
| ## [v0.0.4] - 2026-04-13 (최신 버전) | ||
| ## [v0.0.5] - 2026-04-15 (최신 버전) | ||
|
|
||
| ### 🌟 주요 특징 (Features) | ||
|
|
||
| - **코드 모듈 분리**: 단일 `app.py`(294줄)를 `config.py`, `text_utils.py`, `retriever.py`, `chain.py`, `app.py`(120줄)로 분리하여 유지보수성 및 테스트 용이성 향상. | ||
| - **설정값 중앙 관리**: 모델명, 경로, 파라미터 등 하드코딩된 설정값을 `config.py`로 통합하여 한 곳에서 관리. | ||
| - **중복 코드 제거**: `app.py`와 `ingest_vector_db.py`에 중복 존재하던 `load_documents()` 함수를 `retriever.py`로 통합. | ||
| - **데이터 파이프라인 통합**: `data_cleaning.py`와 `data_preprocessing_for_RAG.py`를 `data_pipeline.py`로 통합하여 1,2단계를 한 번에 실행. | ||
| - **Reranker 모델 자동 전환**: `config.py`에서 `RERANKER_MODEL`만 변경하면 BAAI/Qwen 모델에 맞는 kwargs가 자동 적용. | ||
| - **의존성 버전 고정**: `requirements.txt`에 최소 버전 제약을 추가하여 환경 재현성 향상. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Release note wording is inaccurate for dependency policy.
🤖 Prompt for AI Agents |
||
| - **`.gitignore` 보강**: `__pycache__/`, `.DS_Store`, `.venv/` 등 표준 Python 제외 항목 추가. | ||
|
|
||
| ### 🤖 모델 구성 (Models) | ||
|
|
||
| - **LLM (Generation):** `qwen2.5:14b` (via Ollama) | ||
| - **Embedding:** `qwen3-embedding:8b` (via Ollama) | ||
| - **Reranker:** `BAAI/bge-reranker-v2-m3` (via HuggingFace CrossEncoder) | ||
| - Optimization: `torch.float16` 적용 | ||
|
|
||
| ### 📂 변경된 파일 구조 (File Structure) | ||
|
|
||
| - `config.py` (신규): 설정값 중앙 관리 | ||
| - `text_utils.py` (신규): 텍스트 클리닝 유틸리티 | ||
| - `retriever.py` (신규): 문서 로딩, 검색, Reranker | ||
| - `chain.py` (신규): LLM 프롬프트 및 생성 체인 | ||
| - `data_pipeline.py` (신규): 데이터 정제 + 전처리 통합 | ||
| - `app.py` (리팩터링): UI 로직만 담당 | ||
| - `ingest_vector_db.py` (리팩터링): 공통 모듈 임포트로 전환 | ||
|
|
||
| --- | ||
|
|
||
| ## [v0.0.4] - 2026-04-13 (이전 버전) | ||
|
|
||
| ### 🌟 주요 특징 (Features) | ||
|
|
||
|
|
||
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.
Fix wording typo in Step 2.1.
Current sentence is awkward (
1,2 뛰어 넘어도 됨.). Use a clearer form like1, 2단계를 건너뛰어도 됩니다.🤖 Prompt for AI Agents