-
Notifications
You must be signed in to change notification settings - Fork 63
feat: update v2.0.0 #325
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
feat: update v2.0.0 #325
Changes from all commits
Commits
Show all changes
154 commits
Select commit
Hold shift + click to select a range
a3a7f47
add image rule guide
pekopoke 251a761
add image rule guide and fix
pekopoke 7457895
add image rule guide and fix
pekopoke 4622849
add image rule guide and fix
pekopoke 68697ab
Merge pull request #237 from pekopoke/dev-lld
shijinpjlab 9935d80
fix:Layout Prompt
80c7c74
fix:Layout Prompt
86502d1
Merge pull request #239 from chaserRen/rzf-1030
e06084 3345743
add new prompt (#241)
dt-yy 11166d7
feat: adapte data structure
decrystal 9aa7103
feat: change static
decrystal 674f639
Merge pull request #243 from decrystal/fix/ade/dev
shijinpjlab ba33675
feat: html_extract_compare example name
e06084 5e36705
x
e06084 d8bd02a
x
e06084 aad8553
feat: add 5 RAG eval metrics
e06084 082e032
add docs
e06084 a853b48
update metrics
e06084 6708796
update lint ci
e06084 64173d1
add ut
e06084 e479452
fix ut
e06084 1cd4e97
Merge pull request #244 from e06084/dev
shijinpjlab ae4197c
feat: support sql datasouce multi-column eval (#259)
shijinpjlab 54fd460
feat: dataset example中文件改名
shijinpjlab c266034
feat: sql连接,添加connect_args属性
shijinpjlab 52d18c2
feat: sql更新md,添加connect_args属性
shijinpjlab 2d8ccb0
feat: sql更新md,去除fields
shijinpjlab de71a33
feat: result_info中track_id改名dingo_id
shijinpjlab 4a3d7c7
🎨 Auto-format code with pre-commit
actions-user c4dee94
Merge pull request #260 from shijinpjlab/dev_sql
shijinpjlab ba97f49
feat: 以星河场景为例的介绍文档、example、rule (#262)
shijinpjlab e3b402b
refactor: multi-turn dialog (#264)
seancoding-day d31ff2c
feat: update readme (#265)
shijinpjlab 6b0be71
docs: update architecture (#266)
e06084 974346d
feat: label QUALITY_GOOD (#267)
shijinpjlab 734d72b
fix: rag metric (#269)
e06084 f5b98e4
fix: fix rag example (#270)
e06084 1038404
feat: add rag mock and eval (#271)
e06084 dab2106
Dev lld: update 5 metrics and dataset for rags (#273)
pekopoke 1a66e46
fix: rags of 5 metrics (#276)
pekopoke f03fcfa
fix : embedding model change
pekopoke 616c62e
🎨 Auto-format code with pre-commit
actions-user e69a571
Merge branch 'dev' into dev_1209
pekopoke 3c827bf
Merge pull request #277 from pekopoke/dev_1209
shijinpjlab 0b67df1
Merge remote-tracking branch 'upstream/main' into dev_main
shijinpjlab b9180b1
Merge pull request #282 from shijinpjlab/dev_main
e06084 040fa6f
feat: update modelres (#278)
shijinpjlab 153a19d
fix: fix rag example (#283)
e06084 1c7d324
feat: ci check import (#285)
shijinpjlab aef40ab
feat: summary add score summary
e06084 f040782
feat: add ut
e06084 f7faca2
feat: add example
e06084 ea444ae
fix comment
e06084 a120e3b
fix comment
e06084 687b161
fix comment
e06084 3c3e620
fix comment
e06084 becca0c
fix
e06084 cf95745
spark add support
e06084 6a5f896
x
e06084 9904d84
Merge pull request #286 from e06084/dev
shijinpjlab 827b6b2
Feature/ats keyword matcher and resume optimizer (#284)
Kylie-dot-s daa0dce
feat: summary support multi-column
e06084 560c037
x
e06084 99ec71d
x
e06084 02c4401
Merge pull request #287 from e06084/dev
shijinpjlab 958a770
fix: fix ut (#288)
e06084 f2ffe4f
feat: update auto-gen-metric (#289)
e06084 96a5dce
feat: update rag_eval_baseline (#290)
e06084 6e1afc6
feat: update e2e RAG eval (#292)
e06084 99ab8ab
feat: add PII detetction (#293)
e06084 1375e14
feat: add LLMTextQualityV5 (#294)
e06084 0e796ca
fix: cleanup docs and examples - remove hardcoded API keys, fix attri…
Kylie-dot-s 2ecffc6
fix : update answer_relevancy metric (#291)
pekopoke 39d41dc
🎨 Auto-format code with pre-commit
actions-user 9f14635
fix: remove hardcoded API keys from all example files
Kylie-dot-s 45dbc93
docs: update metrics docs (#295)
e06084 9748808
refactor: simplify prompt template logic with getattr
Kylie-dot-s 9e5f3a5
docs: update README (#298)
e06084 6fffd1d
refactor: use len(prefix) instead of magic numbers and fix relative p…
Kylie-dot-s 974d492
docs: update README (#299)
e06084 3d32017
docs: update README (#300)
e06084 5048d80
fix: use absolute paths in examples for working directory independence
Kylie-dot-s 0db6bdb
feat: update gradio
shijinpjlab e49211c
feat: fix lint
shijinpjlab f9c932d
build: set numpy>=1.26.4 (#301)
e06084 f3cd8fb
feat: except
shijinpjlab b4ae906
feat: save data
shijinpjlab 4fa75c3
feat: remove_output
shijinpjlab f6becc8
feat: rule base default value
shijinpjlab 4e2d287
feat: llm base default value
shijinpjlab 1fb877a
Merge pull request #302 from shijinpjlab/dev_1218
shijinpjlab 252a950
feat: update embedding model init
e06084 cd29c96
update readme
e06084 86ec8af
feat: support excel
shijinpjlab 03c138d
feat: fix lint
shijinpjlab 2fa6fde
Merge pull request #303 from e06084/dev
shijinpjlab adc1be6
Merge remote-tracking branch 'upstream/dev' into dev_1218
shijinpjlab a5b78e0
feat: add example
shijinpjlab 8c9b8d0
feat: add example file
shijinpjlab 2c4b4b6
feat: fix bug exception unclose
shijinpjlab a691469
feat: use root_dir
shijinpjlab 4497838
Merge pull request #305 from shijinpjlab/dev_1218
shijinpjlab a3f726f
feat: fix bug gradio detail repeat
shijinpjlab b641ffd
feat: use set
shijinpjlab 4c09803
feat: fix bug miss first reason
shijinpjlab 51a14a8
Merge pull request #306 from shijinpjlab/dev_1222
shijinpjlab 87e08af
feat: unshare link
shijinpjlab 28785c7
Merge pull request #307 from shijinpjlab/dev_1222
shijinpjlab 0c3c421
feat: update gradio image in readme,
shijinpjlab 3e11143
feat: update gradio image in readme, (#308)
shijinpjlab 9ed8210
refactor: simplify llm_text_3h.py and unify examples path resolution
Kylie-dot-s 3a078c3
fix: fix embedding config load (#309)
e06084 caa6be9
feat: support csv
shijinpjlab 16ca843
Merge branch 'dev_1222' into dev_csv
shijinpjlab 8b2501c
feat: fix bug. circular import and conflict name
shijinpjlab 08adce8
feat: excel md
shijinpjlab f4e7996
feat: fix bug. label repeat
shijinpjlab d060e63
feat: lint
shijinpjlab bc76267
feat: file loc
shijinpjlab 3bf0567
feat: update by gemini assist
shijinpjlab 1e2d1aa
Merge remote-tracking branch 'origin/dev_csv' into dev_csv
shijinpjlab 97a6613
fix: cls.prompt is a string, use directly
Kylie-dot-s 8bf0093
Merge pull request #296 from Kylie-dot-s/fix/docs-and-examples-cleanup
shijinpjlab 5a01ae8
feat: lint
shijinpjlab 1de03d7
Merge pull request #310 from shijinpjlab/dev_csv
shijinpjlab 822e68f
docs: update documentation and tests to use new evaluator config format
Kylie-dot-s 146d604
feat: add Instruction Quality Evaluation (#313)
e06084 7464aa2
feat: add examples in metrics (#314)
e06084 d7072cf
fix: update score.py to use LLMTextQualityV5 instead of deleted module
Kylie-dot-s d09737d
feat: init agent&tool architecture (#311)
seancoding-day d842a6c
update: fix tests and examples
Kylie-dot-s 00f9b39
🎨 Auto-format code with pre-commit
actions-user 160beee
fix: resolve flake8 unused variable error
Kylie-dot-s ab92b69
feat: fix spark
shijinpjlab 4e7ac3d
Merge pull request #316 from shijinpjlab/dev_spark
shijinpjlab b053f8c
feat: adapt the new json
tenwanft 24d76ba
feat:remove console
tenwanft d317688
feat:build web
tenwanft 038cee6
feat:adopt table column width and make data reading function as publi…
tenwanft a5ff0c0
🎨 Auto-format code with pre-commit
actions-user df0f9e3
Merge pull request #318 from tenwanft/dev_zeng
shijinpjlab c93f3cb
feat: support parquet file
shijinpjlab 41b4aee
🎨 Auto-format code with pre-commit
actions-user 5ff278c
feat: gemini dingo/data/datasource/local.py
shijinpjlab 666246c
Merge pull request #320 from shijinpjlab/dev_parquet
shijinpjlab 0533a4a
chore: revert code changes to match dev branch, keep docs only
Kylie-dot-s 10a90f2
chore: cleanup docs and local.py to focus on examples and tests
Kylie-dot-s 984a17b
chore: remove accidental test file from docs PR
Kylie-dot-s eadcf9d
Merge pull request #321 from Kylie-dot-s/fix/docs-only
shijinpjlab bafd1bd
feat: use_browser (#323)
shijinpjlab b413024
Merge pull request #322 from Kylie-dot-s/feat/update-all-examples-and…
shijinpjlab 8981743
feat: agent&tool docs/tests/examples (#319)
seancoding-day 3329e72
Merge pull request #324 from MigoXLab/main
shijinpjlab 8a4fd02
feat: update v2.0.0
shijinpjlab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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,24 +1,16 @@ | ||
| { | ||
| "input_path": "test/data/test_local_json.json", | ||
| "log_level": "DEBUG", | ||
| "dataset": { | ||
| "source": "local", | ||
| "format": "json", | ||
| "field": { | ||
| "content": "prediction" | ||
| } | ||
| }, | ||
| "executor": { | ||
| "rule_list": ["RuleSpecialCharacter", "RuleWatermark"] | ||
| "format": "json" | ||
| }, | ||
| "evaluator": { | ||
| "rule_config": { | ||
| "RuleSpecialCharacter": { | ||
| "pattern": "[�^□]|\\{\\/U\\}" | ||
| }, | ||
| "RuleWatermark": { | ||
| "key_list": ["谢邀", "Architecture of dingo"] | ||
| } | ||
| "evaluator": [ | ||
| { | ||
| "fields": {"content": "prediction"}, | ||
| "evals": [ | ||
| {"name": "RuleSpecialCharacter", "config": {"pattern": "[�^□]|\\{\\/U\\}"}}, | ||
| {"name": "RuleWatermark", "config": {"key_list": ["谢邀", "Architecture of dingo"]}} | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } |
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
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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| #!/usr/bin/env python3 | ||
| """检查所有Python文件是否可以成功编译和导入""" | ||
|
|
||
| import os | ||
| import py_compile | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| def check_syntax(file_path): | ||
| """检查Python文件语法""" | ||
| try: | ||
| py_compile.compile(file_path, doraise=True) | ||
| return True, None | ||
| except py_compile.PyCompileError as e: | ||
| return False, str(e) | ||
|
|
||
|
|
||
| def main(): | ||
| """主函数""" | ||
| project_root = Path(__file__).parent.parent.parent | ||
| dingo_path = project_root / "dingo" | ||
|
|
||
| if not dingo_path.exists(): | ||
| print(f"❌ 找不到dingo目录: {dingo_path}") | ||
| sys.exit(1) | ||
|
|
||
| errors = [] | ||
| checked = 0 | ||
|
|
||
| print("🔍 检查所有Python文件的语法和导入...") | ||
| print("-" * 60) | ||
|
|
||
| for py_file in dingo_path.rglob("*.py"): | ||
| if "__pycache__" in str(py_file): | ||
| continue | ||
|
|
||
| checked += 1 | ||
| success, error = check_syntax(str(py_file)) | ||
|
|
||
| if success: | ||
| print(f"✓ {py_file.relative_to(project_root)}") | ||
| else: | ||
| error_msg = f"✗ {py_file.relative_to(project_root)}: {error}" | ||
| print(error_msg) | ||
| errors.append(error_msg) | ||
|
|
||
| print("-" * 60) | ||
| print(f"📊 检查了 {checked} 个文件") | ||
|
|
||
| if errors: | ||
| print(f"\n❌ 发现 {len(errors)} 个错误:") | ||
| for error in errors: | ||
| print(f" {error}") | ||
| sys.exit(1) | ||
| else: | ||
| print(f"✅ 所有文件检查通过!") | ||
| sys.exit(0) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() | ||
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 |
|---|---|---|
|
|
@@ -15,7 +15,47 @@ jobs: | |
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Run pre-commit | ||
|
|
||
| - name: Install pre-commit | ||
| run: pip install pre-commit==3.8.0 | ||
|
|
||
| - name: Install package | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| if [ -f requirements/runtime.txt ]; then pip install -r requirements/runtime.txt; fi | ||
| pip install -e . | ||
|
|
||
| - name: Check Python syntax and imports | ||
| run: | | ||
| python .github/scripts/check_imports.py | ||
|
|
||
| - name: Run pre-commit (auto-fix) | ||
| id: pre_commit_auto_fix | ||
| run: | | ||
| # 运行 pre-commit,允许自动修复,不因修复而失败 | ||
| pre-commit run --all-files || true | ||
|
|
||
| - name: Check for changes | ||
| id: check_changes | ||
| run: | | ||
| if [[ -n $(git status --porcelain) ]]; then | ||
| echo "changed=true" >> $GITHUB_OUTPUT | ||
| echo "📝 Files were modified by pre-commit auto-fix" | ||
| else | ||
| echo "changed=false" >> $GITHUB_OUTPUT | ||
| echo "✅ No auto-fix changes" | ||
| fi | ||
|
|
||
| - name: Commit auto-fix changes | ||
| if: steps.check_changes.outputs.changed == 'true' && github.event_name == 'push' | ||
| run: | | ||
| git config --local user.email "[email protected]" | ||
| git config --local user.name "GitHub Action" | ||
| git add -A | ||
| git commit -m "🎨 Auto-format code with pre-commit" | ||
| git push | ||
|
|
||
| - name: Run pre-commit (final check) | ||
| run: | | ||
| pip install pre-commit==3.8.0 | ||
| # 再次运行 pre-commit,这次如果有错误就真的失败 | ||
| pre-commit run --all-files | ||
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.
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.
The
osmodule is imported but not used in this script. It can be safely removed to keep the imports clean.