Skip to content
Merged
Show file tree
Hide file tree
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 Oct 29, 2025
251a761
add image rule guide and fix
pekopoke Oct 30, 2025
7457895
add image rule guide and fix
pekopoke Oct 30, 2025
4622849
add image rule guide and fix
pekopoke Oct 30, 2025
68697ab
Merge pull request #237 from pekopoke/dev-lld
shijinpjlab Oct 30, 2025
9935d80
fix:Layout Prompt
Oct 30, 2025
80c7c74
fix:Layout Prompt
Oct 30, 2025
86502d1
Merge pull request #239 from chaserRen/rzf-1030
e06084 Oct 30, 2025
3345743
add new prompt (#241)
dt-yy Nov 2, 2025
11166d7
feat: adapte data structure
decrystal Nov 4, 2025
9aa7103
feat: change static
decrystal Nov 4, 2025
674f639
Merge pull request #243 from decrystal/fix/ade/dev
shijinpjlab Nov 4, 2025
ba33675
feat: html_extract_compare example name
e06084 Oct 21, 2025
5e36705
x
e06084 Oct 29, 2025
d8bd02a
x
e06084 Nov 3, 2025
aad8553
feat: add 5 RAG eval metrics
e06084 Nov 6, 2025
082e032
add docs
e06084 Nov 6, 2025
a853b48
update metrics
e06084 Nov 6, 2025
6708796
update lint ci
e06084 Nov 6, 2025
64173d1
add ut
e06084 Nov 6, 2025
e479452
fix ut
e06084 Nov 6, 2025
1cd4e97
Merge pull request #244 from e06084/dev
shijinpjlab Nov 6, 2025
ae4197c
feat: support sql datasouce multi-column eval (#259)
shijinpjlab Nov 25, 2025
54fd460
feat: dataset example中文件改名
shijinpjlab Nov 25, 2025
c266034
feat: sql连接,添加connect_args属性
shijinpjlab Nov 25, 2025
52d18c2
feat: sql更新md,添加connect_args属性
shijinpjlab Nov 25, 2025
2d8ccb0
feat: sql更新md,去除fields
shijinpjlab Nov 25, 2025
de71a33
feat: result_info中track_id改名dingo_id
shijinpjlab Nov 25, 2025
4a3d7c7
🎨 Auto-format code with pre-commit
actions-user Nov 25, 2025
c4dee94
Merge pull request #260 from shijinpjlab/dev_sql
shijinpjlab Nov 25, 2025
ba97f49
feat: 以星河场景为例的介绍文档、example、rule (#262)
shijinpjlab Nov 26, 2025
e3b402b
refactor: multi-turn dialog (#264)
seancoding-day Dec 2, 2025
d31ff2c
feat: update readme (#265)
shijinpjlab Dec 3, 2025
6b0be71
docs: update architecture (#266)
e06084 Dec 3, 2025
974346d
feat: label QUALITY_GOOD (#267)
shijinpjlab Dec 4, 2025
734d72b
fix: rag metric (#269)
e06084 Dec 5, 2025
f5b98e4
fix: fix rag example (#270)
e06084 Dec 5, 2025
1038404
feat: add rag mock and eval (#271)
e06084 Dec 8, 2025
dab2106
Dev lld: update 5 metrics and dataset for rags (#273)
pekopoke Dec 9, 2025
1a66e46
fix: rags of 5 metrics (#276)
pekopoke Dec 9, 2025
f03fcfa
fix : embedding model change
pekopoke Dec 9, 2025
616c62e
🎨 Auto-format code with pre-commit
actions-user Dec 9, 2025
e69a571
Merge branch 'dev' into dev_1209
pekopoke Dec 9, 2025
3c827bf
Merge pull request #277 from pekopoke/dev_1209
shijinpjlab Dec 10, 2025
0b67df1
Merge remote-tracking branch 'upstream/main' into dev_main
shijinpjlab Dec 11, 2025
b9180b1
Merge pull request #282 from shijinpjlab/dev_main
e06084 Dec 11, 2025
040fa6f
feat: update modelres (#278)
shijinpjlab Dec 11, 2025
153a19d
fix: fix rag example (#283)
e06084 Dec 11, 2025
1c7d324
feat: ci check import (#285)
shijinpjlab Dec 12, 2025
aef40ab
feat: summary add score summary
e06084 Dec 12, 2025
f040782
feat: add ut
e06084 Dec 12, 2025
f7faca2
feat: add example
e06084 Dec 12, 2025
ea444ae
fix comment
e06084 Dec 12, 2025
a120e3b
fix comment
e06084 Dec 12, 2025
687b161
fix comment
e06084 Dec 12, 2025
3c3e620
fix comment
e06084 Dec 12, 2025
becca0c
fix
e06084 Dec 12, 2025
cf95745
spark add support
e06084 Dec 15, 2025
6a5f896
x
e06084 Dec 15, 2025
9904d84
Merge pull request #286 from e06084/dev
shijinpjlab Dec 15, 2025
827b6b2
Feature/ats keyword matcher and resume optimizer (#284)
Kylie-dot-s Dec 15, 2025
daa0dce
feat: summary support multi-column
e06084 Dec 15, 2025
560c037
x
e06084 Dec 15, 2025
99ec71d
x
e06084 Dec 15, 2025
02c4401
Merge pull request #287 from e06084/dev
shijinpjlab Dec 15, 2025
958a770
fix: fix ut (#288)
e06084 Dec 15, 2025
f2ffe4f
feat: update auto-gen-metric (#289)
e06084 Dec 15, 2025
96a5dce
feat: update rag_eval_baseline (#290)
e06084 Dec 16, 2025
6e1afc6
feat: update e2e RAG eval (#292)
e06084 Dec 16, 2025
99ab8ab
feat: add PII detetction (#293)
e06084 Dec 17, 2025
1375e14
feat: add LLMTextQualityV5 (#294)
e06084 Dec 17, 2025
0e796ca
fix: cleanup docs and examples - remove hardcoded API keys, fix attri…
Kylie-dot-s Dec 17, 2025
2ecffc6
fix : update answer_relevancy metric (#291)
pekopoke Dec 17, 2025
39d41dc
🎨 Auto-format code with pre-commit
actions-user Dec 17, 2025
9f14635
fix: remove hardcoded API keys from all example files
Kylie-dot-s Dec 17, 2025
45dbc93
docs: update metrics docs (#295)
e06084 Dec 17, 2025
9748808
refactor: simplify prompt template logic with getattr
Kylie-dot-s Dec 18, 2025
9e5f3a5
docs: update README (#298)
e06084 Dec 18, 2025
6fffd1d
refactor: use len(prefix) instead of magic numbers and fix relative p…
Kylie-dot-s Dec 18, 2025
974d492
docs: update README (#299)
e06084 Dec 18, 2025
3d32017
docs: update README (#300)
e06084 Dec 18, 2025
5048d80
fix: use absolute paths in examples for working directory independence
Kylie-dot-s Dec 18, 2025
0db6bdb
feat: update gradio
shijinpjlab Dec 18, 2025
e49211c
feat: fix lint
shijinpjlab Dec 18, 2025
f9c932d
build: set numpy>=1.26.4 (#301)
e06084 Dec 18, 2025
f3cd8fb
feat: except
shijinpjlab Dec 19, 2025
b4ae906
feat: save data
shijinpjlab Dec 19, 2025
4fa75c3
feat: remove_output
shijinpjlab Dec 19, 2025
f6becc8
feat: rule base default value
shijinpjlab Dec 19, 2025
4e2d287
feat: llm base default value
shijinpjlab Dec 19, 2025
1fb877a
Merge pull request #302 from shijinpjlab/dev_1218
shijinpjlab Dec 19, 2025
252a950
feat: update embedding model init
e06084 Dec 19, 2025
cd29c96
update readme
e06084 Dec 19, 2025
86ec8af
feat: support excel
shijinpjlab Dec 19, 2025
03c138d
feat: fix lint
shijinpjlab Dec 19, 2025
2fa6fde
Merge pull request #303 from e06084/dev
shijinpjlab Dec 19, 2025
adc1be6
Merge remote-tracking branch 'upstream/dev' into dev_1218
shijinpjlab Dec 19, 2025
a5b78e0
feat: add example
shijinpjlab Dec 19, 2025
8c9b8d0
feat: add example file
shijinpjlab Dec 22, 2025
2c4b4b6
feat: fix bug exception unclose
shijinpjlab Dec 22, 2025
a691469
feat: use root_dir
shijinpjlab Dec 22, 2025
4497838
Merge pull request #305 from shijinpjlab/dev_1218
shijinpjlab Dec 22, 2025
a3f726f
feat: fix bug gradio detail repeat
shijinpjlab Dec 22, 2025
b641ffd
feat: use set
shijinpjlab Dec 22, 2025
4c09803
feat: fix bug miss first reason
shijinpjlab Dec 22, 2025
51a14a8
Merge pull request #306 from shijinpjlab/dev_1222
shijinpjlab Dec 22, 2025
87e08af
feat: unshare link
shijinpjlab Dec 22, 2025
28785c7
Merge pull request #307 from shijinpjlab/dev_1222
shijinpjlab Dec 22, 2025
0c3c421
feat: update gradio image in readme,
shijinpjlab Dec 22, 2025
3e11143
feat: update gradio image in readme, (#308)
shijinpjlab Dec 22, 2025
9ed8210
refactor: simplify llm_text_3h.py and unify examples path resolution
Kylie-dot-s Dec 22, 2025
3a078c3
fix: fix embedding config load (#309)
e06084 Dec 23, 2025
caa6be9
feat: support csv
shijinpjlab Dec 23, 2025
16ca843
Merge branch 'dev_1222' into dev_csv
shijinpjlab Dec 23, 2025
8b2501c
feat: fix bug. circular import and conflict name
shijinpjlab Dec 23, 2025
08adce8
feat: excel md
shijinpjlab Dec 23, 2025
f4e7996
feat: fix bug. label repeat
shijinpjlab Dec 23, 2025
d060e63
feat: lint
shijinpjlab Dec 23, 2025
bc76267
feat: file loc
shijinpjlab Dec 23, 2025
3bf0567
feat: update by gemini assist
shijinpjlab Dec 23, 2025
1e2d1aa
Merge remote-tracking branch 'origin/dev_csv' into dev_csv
shijinpjlab Dec 23, 2025
97a6613
fix: cls.prompt is a string, use directly
Kylie-dot-s Dec 23, 2025
8bf0093
Merge pull request #296 from Kylie-dot-s/fix/docs-and-examples-cleanup
shijinpjlab Dec 23, 2025
5a01ae8
feat: lint
shijinpjlab Dec 23, 2025
1de03d7
Merge pull request #310 from shijinpjlab/dev_csv
shijinpjlab Dec 23, 2025
822e68f
docs: update documentation and tests to use new evaluator config format
Kylie-dot-s Dec 23, 2025
146d604
feat: add Instruction Quality Evaluation (#313)
e06084 Dec 23, 2025
7464aa2
feat: add examples in metrics (#314)
e06084 Dec 23, 2025
d7072cf
fix: update score.py to use LLMTextQualityV5 instead of deleted module
Kylie-dot-s Dec 23, 2025
d09737d
feat: init agent&tool architecture (#311)
seancoding-day Dec 23, 2025
d842a6c
update: fix tests and examples
Kylie-dot-s Dec 24, 2025
00f9b39
🎨 Auto-format code with pre-commit
actions-user Dec 24, 2025
160beee
fix: resolve flake8 unused variable error
Kylie-dot-s Dec 24, 2025
ab92b69
feat: fix spark
shijinpjlab Dec 24, 2025
4e7ac3d
Merge pull request #316 from shijinpjlab/dev_spark
shijinpjlab Dec 24, 2025
b053f8c
feat: adapt the new json
tenwanft Dec 19, 2025
24d76ba
feat:remove console
tenwanft Dec 24, 2025
d317688
feat:build web
tenwanft Dec 24, 2025
038cee6
feat:adopt table column width and make data reading function as publi…
tenwanft Dec 24, 2025
a5ff0c0
🎨 Auto-format code with pre-commit
actions-user Dec 24, 2025
df0f9e3
Merge pull request #318 from tenwanft/dev_zeng
shijinpjlab Dec 24, 2025
c93f3cb
feat: support parquet file
shijinpjlab Dec 25, 2025
41b4aee
🎨 Auto-format code with pre-commit
actions-user Dec 25, 2025
5ff278c
feat: gemini dingo/data/datasource/local.py
shijinpjlab Dec 25, 2025
666246c
Merge pull request #320 from shijinpjlab/dev_parquet
shijinpjlab Dec 25, 2025
0533a4a
chore: revert code changes to match dev branch, keep docs only
Kylie-dot-s Dec 25, 2025
10a90f2
chore: cleanup docs and local.py to focus on examples and tests
Kylie-dot-s Dec 25, 2025
984a17b
chore: remove accidental test file from docs PR
Kylie-dot-s Dec 25, 2025
eadcf9d
Merge pull request #321 from Kylie-dot-s/fix/docs-only
shijinpjlab Dec 25, 2025
bafd1bd
feat: use_browser (#323)
shijinpjlab Dec 25, 2025
b413024
Merge pull request #322 from Kylie-dot-s/feat/update-all-examples-and…
shijinpjlab Dec 25, 2025
8981743
feat: agent&tool docs/tests/examples (#319)
seancoding-day Dec 25, 2025
3329e72
Merge pull request #324 from MigoXLab/main
shijinpjlab Dec 25, 2025
8a4fd02
feat: update v2.0.0
shijinpjlab Dec 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 9 additions & 17 deletions .github/env/custom_config_rule.json
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"]}}
]
}
}
]
}
17 changes: 9 additions & 8 deletions .github/env/hf_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"input_path": "chupei/format-json",
"dataset": {
"source": "hugging_face",
"format": "json",
"field": {
"prompt": "origin_prompt",
"content": "prediction"
}
"format": "json"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"prompt": "origin_prompt", "content": "prediction"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
16 changes: 9 additions & 7 deletions .github/env/hf_jsonl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"input_path": "chupei/format-jsonl",
"dataset": {
"source": "hugging_face",
"format": "jsonl",
"field": {
"content": "content"
}
"format": "jsonl"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"content": "content"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
17 changes: 9 additions & 8 deletions .github/env/hf_listjson.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"input_path": "chupei/format-listjson",
"dataset": {
"source": "hugging_face",
"format": "listjson",
"field": {
"prompt": "instruction",
"content": "output"
}
"format": "listjson"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"prompt": "instruction", "content": "output"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
15 changes: 8 additions & 7 deletions .github/env/hf_plaintext.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"input_path": "chupei/format-text",
"dataset": {
"source": "hugging_face",
"format": "plaintext",
"field": {
"content": "text"
}
"format": "plaintext"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
16 changes: 9 additions & 7 deletions .github/env/local_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"input_path": "test/data/test_local_json.json",
"dataset": {
"source": "local",
"format": "json",
"field": {
"content": "prediction"
}
"format": "json"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"content": "prediction"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
16 changes: 9 additions & 7 deletions .github/env/local_jsonl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"input_path": "test/data/test_local_jsonl.jsonl",
"dataset": {
"source": "local",
"format": "jsonl",
"field": {
"content": "content"
}
"format": "jsonl"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"content": "content"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
16 changes: 9 additions & 7 deletions .github/env/local_listjson.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"input_path": "test/data/test_local_listjson.json",
"dataset": {
"source": "local",
"format": "listjson",
"field": {
"content": "output"
}
"format": "listjson"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"fields": {"content": "output"},
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
10 changes: 7 additions & 3 deletions .github/env/local_plaintext.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"source": "local",
"format": "plaintext"
},
"executor": {
"eval_group": "default"
}
"evaluator": [
{
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
10 changes: 8 additions & 2 deletions .github/env/local_plaintext_save.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
"format": "plaintext"
},
"executor": {
"eval_group": "default",
"result_save": {
"bad": true
}
}
},
"evaluator": [
{
"evals": [
{"name": "RuleColonEnd"}
]
}
]
}
62 changes: 62 additions & 0 deletions .github/scripts/check_imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/usr/bin/env python3
"""检查所有Python文件是否可以成功编译和导入"""

import os
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The os module is imported but not used in this script. It can be safely removed to keep the imports clean.

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()
8 changes: 7 additions & 1 deletion .github/workflows/IntegrationTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
if [ -f requirements/runtime.txt ]; then pip install -r requirements/runtime.txt; fi
pip install pyspark
pip install tavily-python
pip install -e .

- name: Check Python syntax and imports
run: |
python .github/scripts/check_imports.py

- name: Integration Test(local plaintext)
run: |
python -m dingo.run.cli --input .github/env/local_plaintext.json
Expand All @@ -45,7 +51,7 @@ jobs:
python -m dingo.run.cli --input .github/env/hf_plaintext.json
- name: Integration Test(huggingface json)
run: |
python -m dingo.run.cli --input .github/env/hf_plaintext.json
python -m dingo.run.cli --input .github/env/hf_json.json
- name: Integration Test(huggingface jsonl)
run: |
python -m dingo.run.cli --input .github/env/hf_jsonl.json
Expand Down
44 changes: 42 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/metrics-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
push:
branches: [ main, dev ]
paths:
- 'dingo/model/prompt/**'
- 'dingo/model/**'
- 'scripts/generate_metrics.py'
pull_request:
branches: [ main ]
paths:
- 'dingo/model/prompt/**'
- 'dingo/model/**'
- 'scripts/generate_metrics.py'
workflow_dispatch:

Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repos:
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: '^README.*\.md$'
- id: end-of-file-fixer
exclude: 'docs/metrics\.md'
- id: check-yaml
Expand Down
Loading