-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: docstring, readme, update structure
- Loading branch information
1 parent
095d292
commit f11c27c
Showing
17 changed files
with
122 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Contribution Guide | ||
這個資料夾主要處理 CI Pipeline, 目前僅有檢測程式碼規範 (pre-commit), 且在發 PR & merge to main 才會觸發 | ||
|
||
We follow GitHub Flow for contributing. The steps are as follows: | ||
|
||
1. **Claim an issue**: Start by picking an issue from GitHub. | ||
2. **Create a branch**: Open a new branch with a clear name related to the issue (e.g., `feat/xxxxx-feature`). | ||
3. **Development**: After completing the feature, ensure you run pre-commit hooks: | ||
``` | ||
pre-commit run --all-files | ||
``` | ||
4. **Create PR Request (PR)**: | ||
- Ensure your PR is small and easily reviewable. | ||
- Add the GitHub issue number to the PR title in the format `feat(#123): xxxxxx` for easy reference. | ||
- Write a clear description including the reason for the change and what was modified (`Reason & Changes`). | ||
5. **Review & Approval**: | ||
- Assign the PR to all members of the team for review. | ||
- Wait for at least one approval. | ||
- Ensure all CI checks pass. | ||
6. **Merge**: Once approved and CI passes, merge the branch into `main` yourself. | ||
|
||
## Additional Notes | ||
- Keep your commits focused and ensure meaningful commit messages. | ||
- Always rebase your branch on top of `main` before merging. | ||
- Avoid large, multi-purpose PRs. Smaller changes are easier to review and help prevent issues. |
Empty file.
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 進行檢索的主程式 | ||
|
||
## flask_app.py | ||
會開出一個 API 供 main.py 呼叫,每次呼叫會送入一題問題,並回傳一個答案 pid | ||
|
||
## utils/retrieval_agent.py | ||
負責呼叫 weaviate & voyage reranker 進行檢索 | ||
|
||
## utils/config_log.py | ||
負責處理 config 檔案,並設定 log 檔案 |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# flask_app 主程式需呼叫的所有輔助程式 | ||
|
||
## retrieval_agent.py | ||
負責呼叫 weaviate & voyage reranker 進行檢索 | ||
|
||
## config_log.py | ||
負責處理 config 檔案,並設定 log 檔案 |
This file contains 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 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 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 +1,8 @@ | ||
# Scripts to process data automatically | ||
# 此資料夾為所有處理資料的程式碼 | ||
包含 資料預處理 及 資料寫入資料庫 | ||
|
||
## data_process/ | ||
OCR & PDF 文字直接讀取 | ||
|
||
## insert_data.py | ||
此程式為寫入資料庫的程式碼,並包含建立資料庫 class、對資料進行 embedding、利用 text_splitter 去 chunk tokens 數過多的資料 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# 此資料夾為資料預處理的程式碼 | ||
OCR & PDF 文字直接讀取 |
This file contains 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 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 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,9 +1,6 @@ | ||
[Weaviate] | ||
weaviate_url = | ||
|
||
[Gemini] | ||
api_key = | ||
|
||
[OpenAI] | ||
api_key = | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# 所有 Questions, Answers, References, etc. 等“資料”都會存於此資料夾 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 此資料夾紀錄所有docker相關的內容 | ||
|
||
## docker_install.sh | ||
為 docker 安裝的腳本,只需運行此 sh 便可 setup docker & docker-compose | ||
|
||
## docker-compose.yml | ||
為 docker-compose 的設定檔,可透過 docker-compose 指令來觸發,裡面僅包含 weaviate 資料庫的啟動 |
Oops, something went wrong.