Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
5be6425
feat: Add teamId and tmbId to evaluation dataset handlers
ctlaltlaltc Aug 26, 2025
a79f6e9
feat: Add evaluation dataset synthesis and smart generation functiona…
ctlaltlaltc Aug 27, 2025
4054cf9
feat: Add APIs for managing evaluation dataset tasks and statuses
ctlaltlaltc Aug 28, 2025
ab8cb72
feat: Add batch quality assessment API endpoint
ctlaltlaltc Aug 28, 2025
bed1c73
feat: Introduce EvalDatasetDataKeyEnum to improve data processing
ctlaltlaltc Aug 28, 2025
7022a6f
feat: Add support for evaluation files and permissions
ctlaltlaltc Sep 1, 2025
feb81a3
feat: Add evaluation task, dataset and dimension management features
Sep 2, 2025
8469356
[feat] updated some English translations
Sep 2, 2025
e65c778
feat: Add evaluation dimension management functionality, optimize sel…
Sep 2, 2025
e003d29
[feat]add evaluation plugin: diting
Sep 2, 2025
83f7d48
feat: Add evaluation dataset file import and intelligent generation f…
Sep 3, 2025
fd91507
feat: implement comprehensive backend evaluation system
chanzhi82020 Aug 22, 2025
0a9c207
feat(evaluation): add evaluation result editing and status management…
Sep 4, 2025
a893891
feat: refactor evaluation module frontend and API services
lavine77 Sep 4, 2025
ccaf394
[feat] add evaluation metric management
SuXiangcheng Sep 4, 2025
3def5e1
[feat]add model timeout and diting project documentation
Sep 3, 2025
a247308
feat: Add auditlog and enhance error handling for evaluation dataset
ctlaltlaltc Sep 2, 2025
3d3d560
feat(evaluation): Add basic structure and context for the evaluation …
1348697900a Sep 4, 2025
dc9f0cd
feat: optimize i18n configuration and add manual data entry functiona…
lavine77 Sep 5, 2025
4087e9b
feat: add icon showcase page
lavine77 Sep 5, 2025
3a28137
feat(dataset): Add enterprise database dataset support
1348697900a Sep 3, 2025
68c9180
feat: add eval summary
hellostronger Sep 4, 2025
ba0dd2e
feat: add evaluation authentication
chanzhi82020 Sep 4, 2025
a5d0377
[update] add evaluator model validation logic
SuXiangcheng Sep 6, 2025
26f0928
[feat] updated some English translations
Sep 6, 2025
ea792a7
feat: Add evaluation errorcode handling
ctlaltlaltc Sep 5, 2025
cf8f49c
refactor: Update evaluation item request types and cleanup logic
ctlaltlaltc Sep 5, 2025
1b3c642
feat: Add synthesizer functionality for data synthesis
ctlaltlaltc Sep 5, 2025
0ee4e8c
refactor: Update error handling and improve i18n support
ctlaltlaltc Sep 6, 2025
3b2ccfa
feat(dataset): Enhance database knowledge base functionalities and in…
1348697900a Sep 6, 2025
1cd32ec
feat(evaluation): Optimize the functionality and interaction of the e…
1348697900a Sep 6, 2025
b68bf18
[add] add detail error message
SuXiangcheng Sep 7, 2025
68f1cd6
feat:add auditlog for eval-task
chanzhi82020 Sep 4, 2025
c367e10
feat(evaluation): Optimize evaluation exception handling and database…
1348697900a Sep 8, 2025
dcb46fd
feat: add error code for eval task
chanzhi82020 Sep 8, 2025
fbb6281
feat: Add team limits and usage tracking for evaluation system
ctlaltlaltc Sep 8, 2025
c8642cf
feat: Add evaluation metric limits and fix naming consistency
ctlaltlaltc Sep 9, 2025
5fbc40a
feat: Add license-based evaluation limits and data item counts
ctlaltlaltc Sep 9, 2025
705e79e
[feat]add auditlog and error codes
SuXiangcheng Sep 9, 2025
df96849
feat: format code and add bill and add audit log and add eval task de…
hellostronger Sep 9, 2025
72fb310
feat: Add team-level authentication for evaluation file uploads
ctlaltlaltc Sep 9, 2025
953eb80
refactor: Clean up evaluation dataset code and enhance audit logging
ctlaltlaltc Sep 9, 2025
ec993c7
feat: Enhance evaluation dataset system with improved model handling
ctlaltlaltc Sep 10, 2025
ce9c42e
feat: integrate evaluation dimension features
lavine77 Sep 11, 2025
6079244
feat: Add status filtering to evaluation dataset data list API
ctlaltlaltc Sep 11, 2025
24cdc00
refactor: Improve evaluation dataset API and data generation
ctlaltlaltc Sep 11, 2025
2a6db65
[update] Optimize code
SuXiangcheng Sep 11, 2025
c0bd60f
feat: add task.dataItem layer API, and optimise the code standards fo…
chanzhi82020 Sep 9, 2025
4e48e27
feat: add summary error code and test case
hellostronger Sep 10, 2025
153fd54
refactor: complete data quality status
ctlaltlaltc Sep 11, 2025
d2a8be7
feat: Add evaluation dataset data detail and enhance dataset listing
ctlaltlaltc Sep 11, 2025
c626cce
feat: refactor expected answer annotation modal
lavine77 Sep 12, 2025
f897337
feat(evaluation): Implement complete functionality for evaluation dat…
1348697900a Sep 10, 2025
741eba3
refactor: optimization param validation of eval-task
chanzhi82020 Sep 12, 2025
f40c244
feat: add summary error code and test case
hellostronger Sep 10, 2025
4c12ded
refactor: evaluation error handling and validation system
ctlaltlaltc Sep 12, 2025
37d47cd
feat: enhance task creation and management
lavine77 Sep 12, 2025
224e75a
feat: add evaluation model configuration options
lavine77 Sep 12, 2025
734d172
feat: adjust test run result score display to full score of 100 format
lavine77 Sep 12, 2025
0bcabcc
feat(evaluation): Enhance the dataset file import feature
1348697900a Sep 12, 2025
a14b6e5
feat: add collection detail API and refactor shared utilities
ctlaltlaltc Sep 13, 2025
24d571e
fix: fix the eval task list and detail api for frontend
chanzhi82020 Sep 13, 2025
f5d13c5
feat: enhance evaluation dataset error handling and failed task
ctlaltlaltc Sep 13, 2025
d901e8e
feat: enhance task creation modal functionality and optimize task lis…
lavine77 Sep 13, 2025
07a8f23
feat(evaluation): enhance error handling and dataset management**
1348697900a Sep 13, 2025
e25b9c1
feat: update icon display page
lavine77 Sep 15, 2025
021a3e9
[update]update evaluation metric api permission
SuXiangcheng Sep 14, 2025
b18a31e
[feat]:new dataset type database in order to compatitable with Text2sql
lfkg Sep 11, 2025
a6dab3b
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a Sep 13, 2025
5ab6c2b
feat: optimize task creation flow and UI interactions
lavine77 Sep 15, 2025
8ec2054
feat: change summary schema and add score scalling and fix summary bug
hellostronger Sep 15, 2025
5a7d0b4
fix: add list evaluation param for frontend
ChanZany Sep 15, 2025
975b7fd
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a Sep 15, 2025
738360a
[update] load builtin evaluation metrics from config file
SuXiangcheng Sep 16, 2025
0842e44
refactor: rename datasetId to evalDatasetCollectionId for clarity
ctlaltlaltc Sep 15, 2025
4abffcb
refactor: remove evalDatasetSmartGenerate and optimize smart generation
ctlaltlaltc Sep 15, 2025
987fa35
feat: enhance smart generation to support collection creation
ctlaltlaltc Sep 15, 2025
3d55df5
refactor: evaluation dataset import API to support multiple files
ctlaltlaltc Sep 16, 2025
5c0d9f6
refactor: restructure evaluation dataset quality metadata schema
ctlaltlaltc Sep 16, 2025
90d92b6
fix: fix eval item processor logic
ChanZany Sep 16, 2025
38f022b
feat: optimize evaluation dimension management UI and i18n support
lavine77 Sep 16, 2025
79e8924
feat(evaluation): Optimize dataset file import and manual addition fe…
1348697900a Sep 16, 2025
17e4f15
feat: updated some English translations
sxf-xiongtao Sep 16, 2025
aabc825
feat: enhance evaluation dataset quality result filtering and UI
ctlaltlaltc Sep 16, 2025
55fd3c4
feat: add admin i18n namespace
sxf-xiongtao Sep 17, 2025
8769e78
feat(evaluation/dataset): Optimize evaluation dataset editing and ret…
1348697900a Sep 17, 2025
89cab4c
fix: prevent overriding active quality assessment jobs
ctlaltlaltc Sep 17, 2025
a7b49c7
fix: fix the bug due to the datasetId rename by evalDatasetCollectionId
chanzhi82020 Sep 17, 2025
bfc47c7
feat: fix chatlog record in targetoutput and score not calculate real
hellostronger Sep 15, 2025
b744dd1
feat(chat): Add evaluation dataset selector and optimize annotation a…
1348697900a Sep 17, 2025
a07a1c7
[ADD] Pdf parse timeout and concurrency
Sep 3, 2025
1363920
feat: data level score
hellostronger Sep 17, 2025
d0d561d
fix: enhance evaluation dataset quality job management
ctlaltlaltc Sep 17, 2025
7bef986
update admin translations
sxf-xiongtao Sep 17, 2025
c8c1c26
optimize the evalt task resource manager
chanzhi82020 Sep 17, 2025
b66e9ec
feat: add detailed task view components with i18n support
lavine77 Sep 17, 2025
a22199c
feat: optimize evaluation task creation and dimension management
lavine77 Sep 17, 2025
63f220b
feat(file): add auto file size filtering in file selector
1348697900a Sep 18, 2025
68066cf
[ADD] Pdf parse timeout and concurrency
Sep 3, 2025
2b4244c
feat: add lightweight evaluation dataset collection list API v2
ctlaltlaltc Sep 18, 2025
b6976f3
feat(chat): Optimize the logic of the evaluation dataset selector and…
1348697900a Sep 18, 2025
b72af98
feat: remove scalling and fix summary bug and fix taskitem list
hellostronger Sep 18, 2025
da301c0
[ADD] PDF parse timeout and concurrency
wwenqi-cn Sep 18, 2025
d674576
feat(evaluation/dataset): Optimize dataset list UI and interactions
1348697900a Sep 19, 2025
20b37a5
feat: add eval_item status search and task list add summary info
hellostronger Sep 18, 2025
4bea99f
feat(dataset): Enhance database import and configuration
1348697900a Sep 16, 2025
d5b89f2
fix: eval task item should support review after task created
ChanZany Sep 19, 2025
c5e1f14
feat: task item list api return evaluators
hellostronger Sep 19, 2025
5960aee
feat: add weight in evaluator
hellostronger Sep 19, 2025
c9f1c90
feat: add failed(no-pass) count in stats API return
ChanZany Sep 19, 2025
e3ca28a
feat(dataset): Enhance database configuration and refresh functionality
1348697900a Sep 19, 2025
60df6ea
feat: enhance evaluation task detail components and summary logic
lavine77 Sep 19, 2025
a5c1ddf
feat(dataset): Add database retrieval testing functionality and inter…
1348697900a Sep 19, 2025
6699fc4
feat: improve CSV evaluation dataset import
ctlaltlaltc Sep 19, 2025
00a819d
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg Sep 19, 2025
d6e0634
fix: repaire the compatibility problem for mongo4.x
chanzhi82020 Sep 19, 2025
772ce3a
[update]remove Sangfor internal proxy source
SuXiangcheng Sep 16, 2025
5f0b8fd
[update]improve diting metrics templates
SuXiangcheng Sep 18, 2025
1f25502
feat(dataset): Add support for database retrieval model configuration
1348697900a Sep 19, 2025
0c509ba
fix: add database_client i18n ns
sxf-xiongtao Sep 20, 2025
adec37a
撤销 "合并分支: fix: add database_client i18n ns ('eval-dev-fix-database_cl…
Sep 20, 2025
e5d7ba3
撤销 "合并分支: update:i18nT and errcode fix,extend: mysql introspect table…
Sep 20, 2025
6a8c6e4
feat: use bullmq as summary generate async tool
hellostronger Sep 19, 2025
ccbfc26
feat: enhance internationalization and UI improvements
lavine77 Sep 20, 2025
626ddae
feat: optimize evaluation task creation and dimension management
lavine77 Sep 20, 2025
11977df
feat(dataset): Optimize database configuration and synchronization fe…
1348697900a Sep 20, 2025
034253f
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg Sep 20, 2025
9383d29
feat:add session while change summary config
hellostronger Sep 20, 2025
4b88f01
fix(dataset): Fix database configuration form submission logic and op…
1348697900a Sep 20, 2025
9a4da51
feat: optimize evaluation task detail page interaction and data polling
lavine77 Sep 20, 2025
1cc79c7
feat(dataset): Optimize database connection form validation and inter…
1348697900a Sep 20, 2025
76de29d
fix:applyChanges detectChanges app's save bug
lfkg Sep 20, 2025
fa8c5db
feat: fix update two metric calculate no recalculate summaryScore
hellostronger Sep 20, 2025
120bc87
update the reviewed translation terms
sxf-xiongtao Sep 21, 2025
d5ecf01
fix: special deal display abnormal icons
lavine77 Sep 22, 2025
e9874cd
feat: optimize evaluation summary card interaction
lavine77 Sep 22, 2025
b12780e
feat: fix repush same job error
hellostronger Sep 20, 2025
99cc624
feat(dataset): Optimize database connection detection and change noti…
1348697900a Sep 22, 2025
34cc9f1
feat: add check i18n completeness script
lavine77 Sep 22, 2025
b101920
feat: enhance evaluation dataset import with validation and fixes
ctlaltlaltc Sep 22, 2025
caac748
fix app save state
lfkg Sep 20, 2025
7f159ea
fix generateSQL bug and training bug
lfkg Sep 20, 2025
cd3c030
feat(dataset): improve database connection and empty state handling
1348697900a Sep 22, 2025
eb38e45
feat(dataset): Optimize column synchronization logic in database conf…
1348697900a Sep 22, 2025
5cce8e9
fix: generate sql bug
lfkg Sep 22, 2025
ef3823b
refactor: refactor task manager by real-time status calculate
chanzhi82020 Sep 20, 2025
8468509
feat:summary temperature and point calculate fix
hellostronger Sep 22, 2025
adaad83
feat: change score calculate-in-real-time
hellostronger Sep 22, 2025
cc940e8
Fix(dataset): Address the issue where deleted tables are still being …
1348697900a Sep 24, 2025
6a16793
feat: add summaryGenerate task need to init summary status
hellostronger Sep 24, 2025
9a48a61
update: Experience Optimization
lfkg Sep 23, 2025
bda9735
fix: list evaluationItem args belowThreshold
chanzhi82020 Sep 24, 2025
26b4b25
refactor: opt evaluation config vairable name
chanzhi82020 Sep 25, 2025
3358624
feat: evalitemlist fix
hellostronger Sep 25, 2025
19131ee
feat: Optimize interaction and performance of evaluation task detail …
lavine77 Sep 25, 2025
15d88aa
fix(2025092000079): enhance summary card and score bar interaction
lavine77 Sep 25, 2025
938a0aa
feat(i18n): remove unused database connection related translations
1348697900a Sep 25, 2025
484d9c5
fix: optimize evaluation dataset queue and worker configurations
ctlaltlaltc Sep 25, 2025
e61fe34
feat: Optimize search input interaction with debounce handling
lavine77 Sep 25, 2025
168884b
update some calibration translations
sxf-xiongtao Sep 25, 2025
d70a403
feat(dataset): Optimize database retrieval-related functionality and …
1348697900a Sep 25, 2025
f91bb91
feat(dataset): remove unused courseUrl from enterprise database config
1348697900a Sep 25, 2025
4145feb
feat(evaluation): optimize error modal UI and model list reference
1348697900a Sep 26, 2025
9a2c39b
feat(evaluation): Optimize dataset selection modal functionality and …
1348697900a Sep 26, 2025
74bcd5f
feat: Optimize evaluation dimension form interaction and validation l…
lavine77 Sep 26, 2025
f35739f
feat:add stalled summary status change,remove data while delete task
hellostronger Sep 25, 2025
bef990f
update some calibration translations
sxf-xiongtao Sep 26, 2025
c5bbcbb
refactor: opt the bullmq setting for eval-related task
chanzhi82020 Sep 25, 2025
1b34321
refactor: remove old evaluation tasks and creation pages, unify using…
lavine77 Sep 28, 2025
162f12b
fix: Change evaluationLLM field name to evaluation in default model c…
lavine77 Sep 28, 2025
919cc7c
Refactor(i18n): Remove unused max length placeholder translations and…
1348697900a Sep 28, 2025
1076b73
update: generate-sql algorithm optimize
lfkg Sep 28, 2025
7ac3273
[add] add text2sql plugin: dative
Sep 28, 2025
a0c377e
feat: optimize interaction and validation logic for evaluation task c…
lavine77 Sep 28, 2025
463bdbc
feat: remove auto uppercase conversion for table cell text
lavine77 Sep 28, 2025
0ec811e
fix: Fix language switching issues
lavine77 Sep 28, 2025
d62de03
fix: Fix internationalization display issue for test run feedback
lavine77 Sep 28, 2025
09d772d
feat(dataset): Optimize the layout of the dataset details page header…
1348697900a Sep 28, 2025
5763e52
feat: remove unused code fix test code
hellostronger Sep 28, 2025
532ba5e
update dative error info
sxf-xiongtao Sep 28, 2025
6342e79
fix: fix loadding default llm as generate sql model error
lfkg Sep 28, 2025
2f41abb
refactor: opt the bullmq task cleans and errorMessage format for eval…
chanzhi82020 Sep 25, 2025
d1fb8c9
fix(dataset): Unify the validation styles of the database connection …
1348697900a Sep 29, 2025
b30ae51
fix(dataset): Remove prompt information when no data changes occur
1348697900a Sep 29, 2025
277bfd0
feat: Dynamically display evaluation feature navigation menu based on…
lavine77 Sep 29, 2025
0827685
feat: Add app name link and polling for evaluation details
lavine77 Sep 29, 2025
3021ce3
fix: optimize permission control and style adjustments for evaluation…
lavine77 Sep 29, 2025
a7c8f77
fix: Improve dataset selection logic to differentiate disable reasons
1348697900a Sep 30, 2025
8248c75
refactor: Change score to percentage logic to round to nearest integer
lavine77 Sep 30, 2025
e1ce5d9
update: update sql quote list
lfkg Sep 30, 2025
74d1f58
update some calibration translations
sxf-xiongtao Oct 8, 2025
65bc627
feat(dataset): Optimize the interface display logic and prompt inform…
1348697900a Sep 30, 2025
4fafa42
fix: unify evaluation related text translation and optimize component…
lavine77 Oct 10, 2025
bb0b329
fix: resolve initialization issue of generateSqlModel in EditForm
1348697900a Oct 10, 2025
d4841e3
fix: optimize dataset selection logic and interface display style
1348697900a Oct 10, 2025
3b20d0e
feat(chat): Optimize display logic for quoted content and add databas…
1348697900a Sep 30, 2025
9bb7cac
fix: optimize file import template hints and add example table display
lavine77 Oct 10, 2025
59fbd31
feat(evaluation): Add a prompt feature for re-evaluating when data ch…
1348697900a Oct 10, 2025
993a923
[fix] correct incorrect usage of error codes
SuXiangcheng Oct 10, 2025
f1efb8f
fix(dataset): Fix the missing dependencies and array structure issues…
1348697900a Oct 11, 2025
9d130a6
fix: fix extra spaces and formatting issues in file import component
lavine77 Oct 11, 2025
6efcaa3
fix(chat, dataset): Fix the styling issue of the reference list and o…
1348697900a Oct 11, 2025
0cfa61d
fix(,workflow): Fix the display logic when no knowledge base is selec…
1348697900a Oct 11, 2025
94c1505
bugfix quality assessment batch reset metadata
ctlaltlaltc Oct 11, 2025
26f5679
update: fix applyChanges Bug And Introduce searchLimit Algorithm
lfkg Oct 11, 2025
20a187c
fix: standardize punctuation and spacing in Chinese/English text
lavine77 Oct 13, 2025
cc04d2f
Fix: Optimize multilingual support and interface display details
1348697900a Oct 13, 2025
5b26b59
fix(workflow): Fix layout misalignment in multilingual environments
1348697900a Oct 13, 2025
2d8089b
feat(evaluation): Optimize dataset evaluation processing with
ctlaltlaltc Oct 13, 2025
6499aa0
fix: fix multilingual text format and component display issues
lavine77 Oct 13, 2025
40c1abe
fix: unify bracket format in admin i18n text and add unit descriptions
lavine77 Oct 14, 2025
138f8f5
fix: unify punctuation format and fix bracket and unit display issues…
lavine77 Oct 14, 2025
d138b22
refactor:optimize eval task manager by review comments
chanzhi82020 Oct 10, 2025
aa22116
fix(dataset): Optimize table display and multilingual adaptation for …
1348697900a Oct 14, 2025
3752f6a
fix: optimize text wrapping style and fix multilingual text display e…
lavine77 Oct 15, 2025
ca4ab7b
update admin i18n
sxf-xiongtao Oct 15, 2025
3f0dd47
[update]update built-in dimension loading mechanism
SuXiangcheng Oct 13, 2025
bdce5a8
update remaining i18n
sxf-xiongtao Oct 16, 2025
dba0881
fix:optimized code format
lfkg Oct 14, 2025
1c27c1c
feat: code format and add multilanguage summary prompt and summary mo…
hellostronger Oct 13, 2025
0c0a2fe
refactor: remove eval task queue based on the KISS Principle
chanzhi82020 Oct 15, 2025
513fa2a
fix: Standardize multilingual text format
1348697900a Oct 15, 2025
1472bb3
feat: code format log remove time and function change to object input
hellostronger Oct 17, 2025
11f0d29
feat: change interface to type for summary Declaration
hellostronger Oct 17, 2025
4ad8ca9
Fix: Unify the multilingual display of application type labels
1348697900a Oct 17, 2025
81a4f65
[update] update diting
SuXiangcheng Oct 18, 2025
b67c972
update: database dataset support to oceanbase vector-store
lfkg Oct 16, 2025
0c608db
fix: fix function name standard
lfkg Oct 20, 2025
5a47d48
fix: pg index name formated
lfkg Oct 20, 2025
01ce166
feat(i18n): Add English support for the template system
1348697900a Oct 20, 2025
2e59b3b
feat: support multilingual array parsing and update plugin template f…
lavine77 Oct 21, 2025
5f3456d
fix: eval target execute result empty
chanzhi82020 Oct 21, 2025
afaf8e4
fix: foreign key store error caused by same-called index name
lfkg Oct 21, 2025
ebe5975
feat: support multilingual field parsing for system plugin templates
lavine77 Oct 22, 2025
53eece6
feat: fix array parsing empty and optimize system plugin input config
lavine77 Oct 23, 2025
38f9c55
update app template translations
sxf-xiongtao Oct 22, 2025
8051066
feat(i18n): Optimize template data refresh mechanism to support dynam…
1348697900a Oct 23, 2025
f97f75e
feat: improve multilingual support and optimize text descriptions
lavine77 Oct 23, 2025
f1e00b2
update index_prefix_title_tips
sxf-xiongtao Oct 23, 2025
657f474
feat: update some translation and fix plugins cache
lavine77 Oct 24, 2025
b31bf8d
feat: update apps page title
lavine77 Oct 27, 2025
ba83bb0
feat: update some translation text
sxf-xiongtao Oct 28, 2025
9e88410
feat: support raw HTML parsing in Markdown
lavine77 Oct 29, 2025
5f761b1
feat: update some translations
lavine77 Oct 30, 2025
d514f9f
合并分支: feat: add clear translation and replace datetime input with dat…
Nov 14, 2025
95711b9
合并分支: feat: support multi-language dynamic image switching and optimi…
Nov 14, 2025
c5a8c1f
合并分支: add english prompts ('develop-1.0.4-add-en-prompt' 到 'develop-1…
Nov 16, 2025
d476cff
fix: result limit bug in workflow-nl2sql
lfkg Dec 3, 2025
8f034ee
merge eval-dev-i18n
Dec 5, 2025
9b5559d
delete dative and diting
Dec 5, 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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ files/helm/fastgpt/charts/*.tgz

tmp/
coverage
document/.source
document/.source
AGENTS.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个是啥

20 changes: 20 additions & 0 deletions deploy/docker/docker-compose-milvus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ services:
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=aiproxy
# diting 地址
- DITING_BASE_URL=http://diting:3000

# 数据库最大连接数
- DB_MAX_LINK=30
Expand Down Expand Up @@ -298,5 +300,23 @@ services:
interval: 5s
timeout: 5s
retries: 10

# diting
diting:
image: ghcr.io/labring/diting:v0.1.0
container_name: diting
restart: unless-stopped
networks:
- fastgpt
environment:
# 对应fastgpt中的aiproxy的AIPROXY_API_ENDPOINT
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# 对应fastgpt中的aiproxy的AIPROXY_API_TOKEN
- AIPROXY_API_TOKEN=aiproxy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/v1/healthz']
interval: 5s
timeout: 5s
retries: 10
networks:
fastgpt:
20 changes: 20 additions & 0 deletions deploy/docker/docker-compose-oceanbase/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ services:
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=aiproxy
# diting 地址
- DITING_BASE_URL=http://diting:3000

# 数据库最大连接数
- DB_MAX_LINK=30
Expand Down Expand Up @@ -272,5 +274,23 @@ services:
interval: 5s
timeout: 5s
retries: 10

# diting
diting:
image: ghcr.io/labring/diting:v0.1.0
container_name: diting
restart: unless-stopped
networks:
- fastgpt
environment:
# 对应fastgpt中的aiproxy的AIPROXY_API_ENDPOINT
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# 对应fastgpt中的aiproxy的AIPROXY_API_TOKEN
- AIPROXY_API_TOKEN=aiproxy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/v1/healthz']
interval: 5s
timeout: 5s
retries: 10
networks:
fastgpt:
20 changes: 20 additions & 0 deletions deploy/docker/docker-compose-pgvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ services:
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=aiproxy
# diting 地址
- DITING_BASE_URL=http://diting:3000

# 数据库最大连接数
- DB_MAX_LINK=30
Expand Down Expand Up @@ -258,5 +260,23 @@ services:
interval: 5s
timeout: 5s
retries: 10

# diting
diting:
image: ghcr.io/labring/diting:v0.1.0
container_name: diting
restart: unless-stopped
networks:
- fastgpt
environment:
# 对应fastgpt中的aiproxy的AIPROXY_API_ENDPOINT
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# 对应fastgpt中的aiproxy的AIPROXY_API_TOKEN
- AIPROXY_API_TOKEN=aiproxy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/v1/healthz']
interval: 5s
timeout: 5s
retries: 10
networks:
fastgpt:
20 changes: 20 additions & 0 deletions deploy/docker/docker-compose-zilliz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ services:
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=aiproxy
# diting 地址
- DITING_BASE_URL=http://diting:3000

# 数据库最大连接数
- DB_MAX_LINK=30
Expand Down Expand Up @@ -240,5 +242,23 @@ services:
interval: 5s
timeout: 5s
retries: 10

# diting
diting:
image: ghcr.io/labring/diting:v0.1.0
container_name: diting
restart: unless-stopped
networks:
- fastgpt
environment:
# 对应fastgpt中的aiproxy的AIPROXY_API_ENDPOINT
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# 对应fastgpt中的aiproxy的AIPROXY_API_TOKEN
- AIPROXY_API_TOKEN=aiproxy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/v1/healthz']
interval: 5s
timeout: 5s
retries: 10
networks:
fastgpt:
139 changes: 139 additions & 0 deletions packages/global/common/error/code/database.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
import { i18nT } from '../../../../web/i18n/utils';
import { type ErrType } from '../errorCode';

/* database: 509000 */
export enum DatabaseErrEnum {
// 知识库相关
datasetParamsError = 'datasetParamsError',
// 客户端创建和管理错误
clientCreateError = 'databaseClientCreateError',
clientUpdateError = 'databaseClientUpdateError',
clientDestroyError = 'databaseClientDestroyError',
clientAlreadyExists = 'databaseClientAlreadyExists',
clientNotFound = 'databaseClientNotFound',

// 连接相关错误
authError = 'databaseAuthError',
databaseNameError = 'databaseNameError',
databasePortError = 'databasePortError',
hostError = 'databaseHostError',
checkError = 'databaseCheckError',
econnRefused = 'connectionRefused',
connectionFailed = 'databaseConnectionFailed',
connectionTimeout = 'databaseConnectionTimeout',
connectionLost = 'databaseConnectionLost',

// 数据库类型和支持错误
notSupportType = 'databaseNotSupportType',
notImplemented = 'databaseNotImplemented',

// API 请求和验证错误
requestValidationError = 'databaseRequestValidationError',
invalidTableName = 'databaseInvalidTableName',
fetchInfoError = 'databaseFetchInfoError',
dbConfigNotFound = 'databaseConfigNotFound',
opUnknownDatabaseError = 'opUnknownDatabaseError',
dativeServiceError = 'dativeServiceError'
}

const databaseErr = [
// 客户端管理错误
{
statusText: DatabaseErrEnum.clientCreateError,
message: 'core.database.error.client_create_failed'
Copy link
Collaborator

Choose a reason for hiding this comment

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

都用 i18nT

},
{
statusText: DatabaseErrEnum.clientUpdateError,
message: 'core.database.error.client_update_failed'
},
{
statusText: DatabaseErrEnum.clientDestroyError,
message: i18nT('database_client:client_destory_error')
},
{
statusText: DatabaseErrEnum.clientNotFound,
message: i18nT('database_client:client_not_found')
},

// 连接错误
{
statusText: DatabaseErrEnum.authError,
message: i18nT('database_client:authentication_failed')
},
{
statusText: DatabaseErrEnum.databaseNameError,
message: i18nT('database_client:database_not_exist')
},
{
statusText: DatabaseErrEnum.databasePortError,
message: i18nT('database_client:database_port_error')
},
{
statusText: DatabaseErrEnum.hostError,
message: i18nT('database_client:host_error')
},
{
statusText: DatabaseErrEnum.econnRefused,
message: i18nT('database_client:connection_refused')
},
{
statusText: DatabaseErrEnum.checkError,
message: i18nT('database_client:connection_check_error')
},
{
statusText: DatabaseErrEnum.connectionLost,
message: i18nT('database_client:connection_lost')
},
{
statusText: DatabaseErrEnum.connectionFailed,
message: i18nT('database_client:connection_failed')
},
{
statusText: DatabaseErrEnum.connectionTimeout,
message: i18nT('database_client:connection_timeout')
},

// 类型支持错误
{
statusText: DatabaseErrEnum.notSupportType,
message: i18nT('database_client:not_support_databaseType')
},
{
statusText: DatabaseErrEnum.notImplemented,
message: i18nT('database_client:not_implemented_databaseType')
},

// 请求验证错误
{
statusText: DatabaseErrEnum.invalidTableName,
message: i18nT('database_client:invalid_table_name')
},
{
statusText: DatabaseErrEnum.fetchInfoError,
message: i18nT('database_client:fetch_info_error')
},
{
statusText: DatabaseErrEnum.dbConfigNotFound,
message: i18nT('database_client:database_config_not_found')
},
{
statusText: DatabaseErrEnum.opUnknownDatabaseError,
message: i18nT('database_client:op_unknown_database_error')
},
{
statusText: DatabaseErrEnum.dativeServiceError,
message: i18nT('database_client:dative_service_error')
}
];

export default databaseErr.reduce((acc, cur, index) => {
return {
...acc,
[cur.statusText]: {
code: 509000 + index,
statusText: cur.statusText,
message: cur.message,
data: null
}
};
}, {} as ErrType<`${DatabaseErrEnum}`>);
Loading
Loading