Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
3ba4143
feat: Add dataset import and creation endpoints for evaluations
ctlaltlaltc Aug 23, 2025
0b9bc8d
feat: Add dataset quality assessment job handling system
ctlaltlaltc Aug 23, 2025
e2e26bd
feat: Add data quality evaluation job for dataset import
ctlaltlaltc Aug 25, 2025
fd71849
feat: Add API for updating and deleting evaluation datasets
ctlaltlaltc Aug 25, 2025
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
357624d
feat: Add evaluation task, dataset and dimension management features
Sep 2, 2025
1501188
[feat] updated some English translations
Sep 2, 2025
e0271f5
feat: Add evaluation dimension management functionality, optimize sel…
Sep 2, 2025
14e4a93
[feat]add evaluation plugin: diting
Sep 2, 2025
28e49b9
feat: Add evaluation dataset file import and intelligent generation f…
Sep 3, 2025
0a77763
feat: implement comprehensive backend evaluation system
chanzhi82020 Aug 22, 2025
3701cd2
feat(evaluation): add evaluation result editing and status management…
Sep 4, 2025
7dc40b0
feat: refactor evaluation module frontend and API services
lavine77 Sep 4, 2025
0220795
[feat] add evaluation metric management
SuXiangcheng Sep 4, 2025
4f1eb60
[feat]add model timeout and diting project documentation
Sep 3, 2025
dd30b11
feat: Add auditlog and enhance error handling for evaluation dataset
ctlaltlaltc Sep 2, 2025
7e0bd59
feat(evaluation): Add basic structure and context for the evaluation …
1348697900a Sep 4, 2025
612ded4
feat: optimize i18n configuration and add manual data entry functiona…
lavine77 Sep 5, 2025
3baba21
feat: add icon showcase page
lavine77 Sep 5, 2025
49d9c94
feat(dataset): Add enterprise database dataset support
1348697900a Sep 3, 2025
f5f7777
feat: add eval summary
hellostronger Sep 4, 2025
dce76a8
feat: add evaluation authentication
chanzhi82020 Sep 4, 2025
4d6929e
[update] add evaluator model validation logic
SuXiangcheng Sep 6, 2025
5d5dc2e
[feat] updated some English translations
Sep 6, 2025
b93a967
feat: Add evaluation errorcode handling
ctlaltlaltc Sep 5, 2025
616933d
refactor: Update evaluation item request types and cleanup logic
ctlaltlaltc Sep 5, 2025
b6383c4
feat: Add synthesizer functionality for data synthesis
ctlaltlaltc Sep 5, 2025
12410dc
refactor: Update error handling and improve i18n support
ctlaltlaltc Sep 6, 2025
ff307d6
feat(dataset): Enhance database knowledge base functionalities and in…
1348697900a Sep 6, 2025
834a595
feat(evaluation): Optimize the functionality and interaction of the e…
1348697900a Sep 6, 2025
b0aae3e
[add] add detail error message
SuXiangcheng Sep 7, 2025
9f12f98
feat:add auditlog for eval-task
chanzhi82020 Sep 4, 2025
daa8fbf
feat(evaluation): Optimize evaluation exception handling and database…
1348697900a Sep 8, 2025
915a3cd
feat: add error code for eval task
chanzhi82020 Sep 8, 2025
23196e7
feat: Add team limits and usage tracking for evaluation system
ctlaltlaltc Sep 8, 2025
b3fcffd
feat: Add evaluation metric limits and fix naming consistency
ctlaltlaltc Sep 9, 2025
11d5d09
feat: Add license-based evaluation limits and data item counts
ctlaltlaltc Sep 9, 2025
545d5cc
[feat]add auditlog and error codes
SuXiangcheng Sep 9, 2025
7750c97
feat: format code and add bill and add audit log and add eval task de…
hellostronger Sep 9, 2025
c407628
feat: Add team-level authentication for evaluation file uploads
ctlaltlaltc Sep 9, 2025
4dce289
refactor: Clean up evaluation dataset code and enhance audit logging
ctlaltlaltc Sep 9, 2025
6a86a8c
feat: Enhance evaluation dataset system with improved model handling
ctlaltlaltc Sep 10, 2025
c6d1415
feat: integrate evaluation dimension features
lavine77 Sep 11, 2025
e20c565
feat: Add status filtering to evaluation dataset data list API
ctlaltlaltc Sep 11, 2025
78b7be4
refactor: Improve evaluation dataset API and data generation
ctlaltlaltc Sep 11, 2025
5eb7ab9
[update] Optimize code
SuXiangcheng Sep 11, 2025
8f5ebbe
feat: add task.dataItem layer API, and optimise the code standards fo…
chanzhi82020 Sep 9, 2025
8055a7f
feat: add summary error code and test case
hellostronger Sep 10, 2025
a8ab733
refactor: complete data quality status
ctlaltlaltc Sep 11, 2025
2bdf695
feat: Add evaluation dataset data detail and enhance dataset listing
ctlaltlaltc Sep 11, 2025
8cec419
feat: refactor expected answer annotation modal
lavine77 Sep 12, 2025
0187227
feat(evaluation): Implement complete functionality for evaluation dat…
1348697900a Sep 10, 2025
df52266
refactor: optimization param validation of eval-task
chanzhi82020 Sep 12, 2025
ceba772
feat: add summary error code and test case
hellostronger Sep 10, 2025
aa6a664
refactor: evaluation error handling and validation system
ctlaltlaltc Sep 12, 2025
24e7f3d
feat: enhance task creation and management
lavine77 Sep 12, 2025
b7b68b0
feat: add evaluation model configuration options
lavine77 Sep 12, 2025
f0ae164
feat: adjust test run result score display to full score of 100 format
lavine77 Sep 12, 2025
e77cbe4
feat(evaluation): Enhance the dataset file import feature
1348697900a Sep 12, 2025
773fb71
feat: add collection detail API and refactor shared utilities
ctlaltlaltc Sep 13, 2025
f080aac
fix: fix the eval task list and detail api for frontend
chanzhi82020 Sep 13, 2025
ffd3bb3
feat: enhance evaluation dataset error handling and failed task
ctlaltlaltc Sep 13, 2025
7b4db78
feat: enhance task creation modal functionality and optimize task lis…
lavine77 Sep 13, 2025
2cc7f87
feat(evaluation): enhance error handling and dataset management**
1348697900a Sep 13, 2025
16c5dc3
feat: update icon display page
lavine77 Sep 15, 2025
5aa0697
[update]update evaluation metric api permission
SuXiangcheng Sep 14, 2025
a28eb3a
[feat]:new dataset type database in order to compatitable with Text2sql
lfkg Sep 11, 2025
1f3eed0
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a Sep 13, 2025
22c53d8
feat: optimize task creation flow and UI interactions
lavine77 Sep 15, 2025
05fa642
feat: change summary schema and add score scalling and fix summary bug
hellostronger Sep 15, 2025
a0261f0
fix: add list evaluation param for frontend
ChanZany Sep 15, 2025
a1f9941
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a Sep 15, 2025
4da5ee5
[update] load builtin evaluation metrics from config file
SuXiangcheng Sep 16, 2025
f1c2210
refactor: rename datasetId to evalDatasetCollectionId for clarity
ctlaltlaltc Sep 15, 2025
bc88bf0
refactor: remove evalDatasetSmartGenerate and optimize smart generation
ctlaltlaltc Sep 15, 2025
dc62345
feat: enhance smart generation to support collection creation
ctlaltlaltc Sep 15, 2025
19ccd6d
refactor: evaluation dataset import API to support multiple files
ctlaltlaltc Sep 16, 2025
591a917
refactor: restructure evaluation dataset quality metadata schema
ctlaltlaltc Sep 16, 2025
e18fd66
fix: fix eval item processor logic
ChanZany Sep 16, 2025
22d2235
feat: optimize evaluation dimension management UI and i18n support
lavine77 Sep 16, 2025
8a62300
feat(evaluation): Optimize dataset file import and manual addition fe…
1348697900a Sep 16, 2025
4b62094
feat: updated some English translations
sxf-xiongtao Sep 16, 2025
0fca27c
feat: enhance evaluation dataset quality result filtering and UI
ctlaltlaltc Sep 16, 2025
c562264
feat: add admin i18n namespace
sxf-xiongtao Sep 17, 2025
1ecef1e
feat(evaluation/dataset): Optimize evaluation dataset editing and ret…
1348697900a Sep 17, 2025
9d1e127
fix: prevent overriding active quality assessment jobs
ctlaltlaltc Sep 17, 2025
4cb58cf
fix: fix the bug due to the datasetId rename by evalDatasetCollectionId
chanzhi82020 Sep 17, 2025
eee3be7
feat: fix chatlog record in targetoutput and score not calculate real
hellostronger Sep 15, 2025
a63225e
feat(chat): Add evaluation dataset selector and optimize annotation a…
1348697900a Sep 17, 2025
4111609
[ADD] Pdf parse timeout and concurrency
Sep 3, 2025
40f0658
feat: data level score
hellostronger Sep 17, 2025
675eff7
fix: enhance evaluation dataset quality job management
ctlaltlaltc Sep 17, 2025
d238b05
update admin translations
sxf-xiongtao Sep 17, 2025
8912600
optimize the evalt task resource manager
chanzhi82020 Sep 17, 2025
0ac845c
feat: add detailed task view components with i18n support
lavine77 Sep 17, 2025
ad1a6d1
feat: optimize evaluation task creation and dimension management
lavine77 Sep 17, 2025
4d92bf9
feat(file): add auto file size filtering in file selector
1348697900a Sep 18, 2025
510c760
[ADD] Pdf parse timeout and concurrency
Sep 3, 2025
fc3f315
feat: add lightweight evaluation dataset collection list API v2
ctlaltlaltc Sep 18, 2025
068a77f
feat(chat): Optimize the logic of the evaluation dataset selector and…
1348697900a Sep 18, 2025
a21b46a
feat: remove scalling and fix summary bug and fix taskitem list
hellostronger Sep 18, 2025
ef136e7
[ADD] PDF parse timeout and concurrency
wwenqi-cn Sep 18, 2025
2d5bf3f
feat(evaluation/dataset): Optimize dataset list UI and interactions
1348697900a Sep 19, 2025
963b3e1
feat: add eval_item status search and task list add summary info
hellostronger Sep 18, 2025
d341f84
feat(dataset): Enhance database import and configuration
1348697900a Sep 16, 2025
3ad5564
fix: eval task item should support review after task created
ChanZany Sep 19, 2025
7a6036d
feat: task item list api return evaluators
hellostronger Sep 19, 2025
f4ec896
feat: add weight in evaluator
hellostronger Sep 19, 2025
4ccefc6
feat: add failed(no-pass) count in stats API return
ChanZany Sep 19, 2025
2783620
feat(dataset): Enhance database configuration and refresh functionality
1348697900a Sep 19, 2025
2a1cd4b
feat: enhance evaluation task detail components and summary logic
lavine77 Sep 19, 2025
11ad017
feat(dataset): Add database retrieval testing functionality and inter…
1348697900a Sep 19, 2025
00b7d90
feat: improve CSV evaluation dataset import
ctlaltlaltc Sep 19, 2025
c194ddb
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg Sep 19, 2025
af1dbbe
fix: repaire the compatibility problem for mongo4.x
chanzhi82020 Sep 19, 2025
30f0698
[update]remove Sangfor internal proxy source
SuXiangcheng Sep 16, 2025
cd87083
[update]improve diting metrics templates
SuXiangcheng Sep 18, 2025
9fb5128
feat(dataset): Add support for database retrieval model configuration
1348697900a Sep 19, 2025
8de5d9c
fix: add database_client i18n ns
sxf-xiongtao Sep 20, 2025
7d0bedf
撤销 "合并分支: fix: add database_client i18n ns ('eval-dev-fix-database_cl…
Sep 20, 2025
f49589b
撤销 "合并分支: update:i18nT and errcode fix,extend: mysql introspect table…
Sep 20, 2025
6dec21c
feat: use bullmq as summary generate async tool
hellostronger Sep 19, 2025
724bd07
feat: enhance internationalization and UI improvements
lavine77 Sep 20, 2025
c051726
feat: optimize evaluation task creation and dimension management
lavine77 Sep 20, 2025
e7b80f5
feat(dataset): Optimize database configuration and synchronization fe…
1348697900a Sep 20, 2025
f3f8461
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg Sep 20, 2025
e9802a5
feat:add session while change summary config
hellostronger Sep 20, 2025
814c952
fix(dataset): Fix database configuration form submission logic and op…
1348697900a Sep 20, 2025
01ae01d
feat: optimize evaluation task detail page interaction and data polling
lavine77 Sep 20, 2025
f791eac
feat(dataset): Optimize database connection form validation and inter…
1348697900a Sep 20, 2025
ffd517a
fix:applyChanges detectChanges app's save bug
lfkg Sep 20, 2025
a15ff20
feat: fix update two metric calculate no recalculate summaryScore
hellostronger Sep 20, 2025
00c0346
update the reviewed translation terms
sxf-xiongtao Sep 21, 2025
093357f
fix: special deal display abnormal icons
lavine77 Sep 22, 2025
f3fec15
feat: optimize evaluation summary card interaction
lavine77 Sep 22, 2025
de0a070
feat: fix repush same job error
hellostronger Sep 20, 2025
d15646f
feat(dataset): Optimize database connection detection and change noti…
1348697900a Sep 22, 2025
f6e97b0
feat: add check i18n completeness script
lavine77 Sep 22, 2025
fdd466a
feat: enhance evaluation dataset import with validation and fixes
ctlaltlaltc Sep 22, 2025
d35458e
fix app save state
lfkg Sep 20, 2025
042f609
fix generateSQL bug and training bug
lfkg Sep 20, 2025
f614418
feat(dataset): improve database connection and empty state handling
1348697900a Sep 22, 2025
8ba8c2a
feat(dataset): Optimize column synchronization logic in database conf…
1348697900a Sep 22, 2025
f85c6b2
fix: generate sql bug
lfkg Sep 22, 2025
a3af968
refactor: refactor task manager by real-time status calculate
chanzhi82020 Sep 20, 2025
2bc3cd7
feat:summary temperature and point calculate fix
hellostronger Sep 22, 2025
19dfc03
feat: change score calculate-in-real-time
hellostronger Sep 22, 2025
a642d10
Fix(dataset): Address the issue where deleted tables are still being …
1348697900a Sep 24, 2025
135fb88
feat: add summaryGenerate task need to init summary status
hellostronger Sep 24, 2025
48575d8
update: Experience Optimization
lfkg Sep 23, 2025
ab2323c
fix: list evaluationItem args belowThreshold
chanzhi82020 Sep 24, 2025
831ed05
refactor: opt evaluation config vairable name
chanzhi82020 Sep 25, 2025
5ff7074
feat: evalitemlist fix
hellostronger Sep 25, 2025
563264d
feat: Optimize interaction and performance of evaluation task detail …
lavine77 Sep 25, 2025
0a57eb3
fix(2025092000079): enhance summary card and score bar interaction
lavine77 Sep 25, 2025
090be28
feat(i18n): remove unused database connection related translations
1348697900a Sep 25, 2025
adfc555
fix: optimize evaluation dataset queue and worker configurations
ctlaltlaltc Sep 25, 2025
65541c1
feat: Optimize search input interaction with debounce handling
lavine77 Sep 25, 2025
c65e6eb
update some calibration translations
sxf-xiongtao Sep 25, 2025
539ea90
feat(dataset): Optimize database retrieval-related functionality and …
1348697900a Sep 25, 2025
66875a5
feat(dataset): remove unused courseUrl from enterprise database config
1348697900a Sep 25, 2025
728365f
feat(evaluation): optimize error modal UI and model list reference
1348697900a Sep 26, 2025
53480cd
feat(evaluation): Optimize dataset selection modal functionality and …
1348697900a Sep 26, 2025
55f4812
feat: Optimize evaluation dimension form interaction and validation l…
lavine77 Sep 26, 2025
e791624
feat:add stalled summary status change,remove data while delete task
hellostronger Sep 25, 2025
2341a0c
update some calibration translations
sxf-xiongtao Sep 26, 2025
ccfec8e
refactor: opt the bullmq setting for eval-related task
chanzhi82020 Sep 25, 2025
c37a184
refactor: remove old evaluation tasks and creation pages, unify using…
lavine77 Sep 28, 2025
fdf94a7
fix: Change evaluationLLM field name to evaluation in default model c…
lavine77 Sep 28, 2025
5d86828
Refactor(i18n): Remove unused max length placeholder translations and…
1348697900a Sep 28, 2025
f5e9601
update: generate-sql algorithm optimize
lfkg Sep 28, 2025
c094ea1
[add] add text2sql plugin: dative
Sep 28, 2025
4da9f98
feat: optimize interaction and validation logic for evaluation task c…
lavine77 Sep 28, 2025
37478a7
feat: remove auto uppercase conversion for table cell text
lavine77 Sep 28, 2025
5a5426f
fix: Fix language switching issues
lavine77 Sep 28, 2025
4c310c0
fix: Fix internationalization display issue for test run feedback
lavine77 Sep 28, 2025
f469550
feat(dataset): Optimize the layout of the dataset details page header…
1348697900a Sep 28, 2025
ee21209
feat: remove unused code fix test code
hellostronger Sep 28, 2025
064dd0c
update dative error info
sxf-xiongtao Sep 28, 2025
686f4c4
fix: fix loadding default llm as generate sql model error
lfkg Sep 28, 2025
c71e196
refactor: opt the bullmq task cleans and errorMessage format for eval…
chanzhi82020 Sep 25, 2025
1a7bfc6
fix(dataset): Unify the validation styles of the database connection …
1348697900a Sep 29, 2025
faab29c
fix(dataset): Remove prompt information when no data changes occur
1348697900a Sep 29, 2025
ad3edcf
feat: Dynamically display evaluation feature navigation menu based on…
lavine77 Sep 29, 2025
a342e8f
feat: Add app name link and polling for evaluation details
lavine77 Sep 29, 2025
e68282e
fix: optimize permission control and style adjustments for evaluation…
lavine77 Sep 29, 2025
af6cc43
fix: Improve dataset selection logic to differentiate disable reasons
1348697900a Sep 30, 2025
adb641f
refactor: Change score to percentage logic to round to nearest integer
lavine77 Sep 30, 2025
abf80c8
update: update sql quote list
lfkg Sep 30, 2025
ed000f3
update some calibration translations
sxf-xiongtao Oct 8, 2025
6795f88
feat(dataset): Optimize the interface display logic and prompt inform…
1348697900a Sep 30, 2025
80d562b
fix: unify evaluation related text translation and optimize component…
lavine77 Oct 10, 2025
230ebd9
fix: resolve initialization issue of generateSqlModel in EditForm
1348697900a Oct 10, 2025
dc9ed89
fix: optimize dataset selection logic and interface display style
1348697900a Oct 10, 2025
ad23176
feat(chat): Optimize display logic for quoted content and add databas…
1348697900a Sep 30, 2025
0b3db92
fix: optimize file import template hints and add example table display
lavine77 Oct 10, 2025
b8803a8
feat(evaluation): Add a prompt feature for re-evaluating when data ch…
1348697900a Oct 10, 2025
926e3a1
[fix] correct incorrect usage of error codes
SuXiangcheng Oct 10, 2025
8a91796
fix(dataset): Fix the missing dependencies and array structure issues…
1348697900a Oct 11, 2025
622a244
fix: fix extra spaces and formatting issues in file import component
lavine77 Oct 11, 2025
a77c402
fix(chat, dataset): Fix the styling issue of the reference list and o…
1348697900a Oct 11, 2025
e8eb130
fix(,workflow): Fix the display logic when no knowledge base is selec…
1348697900a Oct 11, 2025
216b067
bugfix quality assessment batch reset metadata
ctlaltlaltc Oct 11, 2025
f918337
update: fix applyChanges Bug And Introduce searchLimit Algorithm
lfkg Oct 11, 2025
66c83a7
fix: standardize punctuation and spacing in Chinese/English text
lavine77 Oct 13, 2025
b676c69
Fix: Optimize multilingual support and interface display details
1348697900a Oct 13, 2025
e873a91
fix(workflow): Fix layout misalignment in multilingual environments
1348697900a Oct 13, 2025
d594cbc
feat(evaluation): Optimize dataset evaluation processing with
ctlaltlaltc Oct 13, 2025
45f0212
fix: fix multilingual text format and component display issues
lavine77 Oct 13, 2025
b1f49ce
fix: unify bracket format in admin i18n text and add unit descriptions
lavine77 Oct 14, 2025
0cc4840
fix: unify punctuation format and fix bracket and unit display issues…
lavine77 Oct 14, 2025
834dfbe
refactor:optimize eval task manager by review comments
chanzhi82020 Oct 10, 2025
108ae04
fix(dataset): Optimize table display and multilingual adaptation for …
1348697900a Oct 14, 2025
909b805
fix: optimize text wrapping style and fix multilingual text display e…
lavine77 Oct 15, 2025
c783a54
update admin i18n
sxf-xiongtao Oct 15, 2025
44ea358
[update]update built-in dimension loading mechanism
SuXiangcheng Oct 13, 2025
374469b
update remaining i18n
sxf-xiongtao Oct 16, 2025
5c84804
fix:optimized code format
lfkg Oct 14, 2025
34eda11
feat: code format and add multilanguage summary prompt and summary mo…
hellostronger Oct 13, 2025
f390d99
refactor: remove eval task queue based on the KISS Principle
chanzhi82020 Oct 15, 2025
f2e3e4c
fix: Standardize multilingual text format
1348697900a Oct 15, 2025
bf370e7
feat: code format log remove time and function change to object input
hellostronger Oct 17, 2025
0ce654c
feat: change interface to type for summary Declaration
hellostronger Oct 17, 2025
7f3460b
Fix: Unify the multilingual display of application type labels
1348697900a Oct 17, 2025
1d1329e
[update] update diting
SuXiangcheng Oct 18, 2025
5eeeb54
update: database dataset support to oceanbase vector-store
lfkg Oct 16, 2025
4d58fa1
fix: fix function name standard
lfkg Oct 20, 2025
17faa61
fix: pg index name formated
lfkg Oct 20, 2025
6c11c12
feat(i18n): Add English support for the template system
1348697900a Oct 20, 2025
1b48276
feat: support multilingual array parsing and update plugin template f…
lavine77 Oct 21, 2025
db00ec3
fix: eval target execute result empty
chanzhi82020 Oct 21, 2025
aaf7fcd
fix: foreign key store error caused by same-called index name
lfkg Oct 21, 2025
c6bcf2e
feat: support multilingual field parsing for system plugin templates
lavine77 Oct 22, 2025
a0c7778
feat: fix array parsing empty and optimize system plugin input config
lavine77 Oct 23, 2025
1c7a998
update app template translations
sxf-xiongtao Oct 22, 2025
c2ea4e3
feat(i18n): Optimize template data refresh mechanism to support dynam…
1348697900a Oct 23, 2025
88880fe
feat: improve multilingual support and optimize text descriptions
lavine77 Oct 23, 2025
0cbf6d4
update index_prefix_title_tips
sxf-xiongtao Oct 23, 2025
3b7e143
feat: update some translation and fix plugins cache
lavine77 Oct 24, 2025
dda55b8
feat: update apps page title
lavine77 Oct 27, 2025
784915a
feat: update some translation text
sxf-xiongtao Oct 28, 2025
5d5f195
feat: support raw HTML parsing in Markdown
lavine77 Oct 29, 2025
2735506
feat: update some translations
lavine77 Oct 30, 2025
43c27c7
merge eval-dev
sxf-xiongtao Nov 3, 2025
eb27f4d
delete diting and dative
sxf-xiongtao Nov 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
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'
},
{
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