Commit Graph

1504 Commits

Author SHA1 Message Date
shaohuzhang1
59d78679b0
feat: application add workspace manage role (#3235) 2025-06-11 15:21:01 +08:00
CaptainB
c758059fe4 feat: add migration to insert default data for ToolFolder and KnowledgeFolder 2025-06-11 15:07:38 +08:00
CaptainB
9877c825bc fix: update check_depth function to include workspace_id for folder hierarchy validation 2025-06-11 14:58:08 +08:00
CaptainB
b63bd8bbea fix: update check_depth function to include workspace_id for folder hierarchy validation 2025-06-11 14:56:49 +08:00
wxg0103
fa818fc6e8 refactor: workspace add user member 2025-06-11 14:27:06 +08:00
wxg0103
7ca61274f2 refactor: workspace add user member 2025-06-11 14:15:49 +08:00
shaohuzhang1
f5baae4117
fix: application page (#3233) 2025-06-11 12:21:13 +08:00
wxg0103
c07fd323bf refactor: workspace add user member 2025-06-11 11:35:47 +08:00
wxg0103
bec1cbd000 refactor: workspace add user member 2025-06-11 11:25:26 +08:00
CaptainB
840fa68b98 fix: rename parameter in put method for clarity 2025-06-11 10:35:13 +08:00
shaohuzhang1
e0bfe0cd73
fix: Modify openAPI description (#3231) 2025-06-10 21:03:50 +08:00
shaohuzhang1
87ab2178bf
feat: application chat log (#3230) 2025-06-10 20:35:20 +08:00
wxg0103
cfafc3f0ba refactor: cache 2025-06-10 19:50:33 +08:00
wxg0103
e6e3acdfea refactor: log add workspace_id 2025-06-10 14:50:25 +08:00
CaptainB
982604d39a fix: change order of query results to ascending by creation time 2025-06-10 13:03:50 +08:00
wxg0103
bc91e94079 refactor: add shared model 2025-06-10 11:30:15 +08:00
wxg0103
3233058146 refactor: permission 2025-06-10 11:29:30 +08:00
shaohuzhang1
5f19924f9f
perf: model manage (#3226) 2025-06-09 21:09:51 +08:00
shaohuzhang1
6a0a57e785
feat: application stats (#3225) 2025-06-09 21:08:04 +08:00
shaohuzhang1
e8886d5c65
feat: application api key (#3224) 2025-06-09 20:25:58 +08:00
CaptainB
56dc0c89de feat: alter document and paragraph status fields and update foreign key constraints 2025-06-09 19:12:52 +08:00
wxg0103
68201d3f87 refactor: model 2025-06-09 19:08:50 +08:00
CaptainB
42509f46ab feat: update permission constants and views for system knowledge management 2025-06-09 18:59:13 +08:00
CaptainB
9ccb501a90 feat: update permission constants and views for system knowledge management 2025-06-09 18:42:21 +08:00
shaohuzhang1
5da47a140d
feat: Access restrictions (#3222) 2025-06-09 18:40:56 +08:00
CaptainB
fff46e5c28 feat: add workspace_id field to Create serializer in paragraph.py 2025-06-09 17:56:24 +08:00
CaptainB
f1e19a1ace feat: add resource management module with CRUD operations and permissions 2025-06-09 17:56:24 +08:00
CaptainB
2b097e5c97 feat: update problem serializers to use ListField for batch requests 2025-06-09 17:38:08 +08:00
shaohuzhang1
c83bce3cef
fix: anonymous authentication (#3216) 2025-06-09 16:57:04 +08:00
wxg0103
6e0e0d2366 refactor: model api 2025-06-09 16:32:29 +08:00
shaohuzhang1
66c868e71f
fix: anonymous authentication (#3214) 2025-06-09 16:25:18 +08:00
shaohuzhang1
3807cf1960
feat: application chat (#3213) 2025-06-09 16:18:43 +08:00
wxg0103
5f10b70e24 refactor: tools add default workspace_id 2025-06-09 15:26:21 +08:00
wxg0103
07caf1ffa5 refactor: add share model 2025-06-09 15:10:13 +08:00
wxg0103
c0eac6d97c refactor: model 2025-06-09 14:28:17 +08:00
wxg0103
515e8555aa refactor: cache 2025-06-09 11:16:50 +08:00
wxg0103
980a27bb74 refactor: add logout 2025-06-07 19:05:27 +08:00
wxg0103
8d40004c67 refactor: add logout 2025-06-07 19:03:18 +08:00
wxg0103
b8b14884bd refactor: add application settings 2025-06-07 17:57:11 +08:00
shaohuzhang1
7d898d870c
feat: add application migrations (#3208) 2025-06-06 22:59:00 +08:00
shaohuzhang1
b2b5c331fa
fix: setup error (#3207) 2025-06-06 22:32:17 +08:00
shaohuzhang1
165de1ad73
feat: chat authentication (#3206) 2025-06-06 22:28:21 +08:00
CaptainB
7abd9dfb71 refactor: improve code formatting and enhance folder_id handling in knowledge serializers 2025-06-06 18:54:59 +08:00
wxg0103
c3c6a551ae refactor: application add chat_background 2025-06-06 18:26:51 +08:00
CaptainB
2fccb9db67 feat: add shared document and paragraph views with related permissions 2025-06-06 17:55:06 +08:00
wxg0103
66d4b6c81a refactor: application add show_exec 2025-06-06 17:17:52 +08:00
wxg0103
8ab4456ec3 refactor: permission 2025-06-06 17:05:25 +08:00
CaptainB
16dc78d5a4 feat: implement pagination and deletion for shared knowledge API 2025-06-06 15:45:21 +08:00
CaptainB
c0ea174275 feat: implement pagination and deletion for shared knowledge API 2025-06-06 15:42:02 +08:00
wxg0103
927b12a5ca refactor: delete dbmodelManage 2025-06-06 15:18:28 +08:00
CaptainB
643200cc06 feat: add scope field to knowledge creation serializers and update related views 2025-06-06 15:13:17 +08:00
CaptainB
a2cc83ec31 style: format URL paths for consistency in spacing 2025-06-06 14:43:40 +08:00
CaptainB
fd441b6986 feat: add file_size_limit and file_count_limit to list_knowledge.sql 2025-06-06 13:14:33 +08:00
wxg0103
4d76f08b14 refactor: file to oss 2025-06-06 12:31:41 +08:00
CaptainB
448bbb3aae feat: rename CELERY_ACKS_LATE to CELERY_TASK_ACKS_LATE for consistency 2025-06-06 12:30:39 +08:00
CaptainB
fc11fcf0e1 feat: add file_count_limit to knowledge model and create KnowledgeWorkspaceAuthorization model 2025-06-06 12:04:02 +08:00
wxg0103
b17cf3fea8 refactor: file to oss 2025-06-06 12:03:25 +08:00
wxg0103
93833849c1 refactor: file to oss 2025-06-06 11:42:31 +08:00
zhangzhanwei
6f2f4d93bb feat: Locations 2025-06-06 10:46:16 +08:00
CaptainB
8f98b7188d feat: add INTERNAL scope to tools and update related SQL queries 2025-06-05 20:22:39 +08:00
wxg0103
0cb33dad5a feat: ui add system settings 2025-06-05 19:47:47 +08:00
wxg0103
40df595173 refactor: model 2025-06-05 18:39:35 +08:00
wxg0103
d05d82106e refactor: model 2025-06-05 18:37:51 +08:00
CaptainB
fee5993c22 feat: add SQL query for embedding text and update model API routes to remove workspace_id 2025-06-05 18:35:31 +08:00
CaptainB
269960649d feat: add gunicorn and python-daemon dependencies to pyproject.toml 2025-06-05 17:56:42 +08:00
CaptainB
a4b6570110 feat: rename tool_type to scope and update related query parameters for tool filtering 2025-06-05 16:27:54 +08:00
zhangzhanwei
e63572b89b feat: System operate log 2025-06-05 14:12:14 +08:00
CaptainB
5cb7fc8d9a feat: refactor shared tool API to utilize ToolSerializer for create, update, and import operations 2025-06-05 11:12:17 +08:00
CaptainB
f5bc003aaf feat: update knowledge permissions to include resource permission groups for various operations 2025-06-05 10:37:55 +08:00
CaptainB
7998133e35 feat: update permission constants for knowledge documents and problems to include resource permission groups 2025-06-05 10:31:29 +08:00
CaptainB
0ca2c72e52 feat: update permission check to use workspace permission for knowledge read operations 2025-06-05 10:17:04 +08:00
CaptainB
6cb3ae74d9 feat: update permission checks to use workspace knowledge permissions for document and knowledge operations 2025-06-05 10:12:59 +08:00
wxg0103
74ce98c39b refactor: gemini 2025-06-05 09:12:38 +08:00
CaptainB
26f84338d6 feat: update folder serializer to remove allow_null and allow_blank from workspace_id and parent_id 2025-06-04 20:34:07 +08:00
shaohuzhang1
1641039fd2
feat: application version (#3194) 2025-06-04 20:14:52 +08:00
CaptainB
8b9e03d7cf feat: update knowledge retrieval logic and optimize SQL queries for application listing 2025-06-04 19:39:21 +08:00
CaptainB
40137f147b feat: enhance init_params handling with encryption and decryption for tools and shared tools 2025-06-04 19:15:33 +08:00
CaptainB
64e26dd2cc feat: change icon edit method from POST to PUT for tools and shared tools 2025-06-04 19:05:19 +08:00
CaptainB
fd2b1245b8 feat: add debug and edit icon functionalities for tools and shared tools 2025-06-04 18:52:24 +08:00
CaptainB
c775f2a57f feat: add edit icon functionality for tools and shared tools 2025-06-04 18:48:20 +08:00
CaptainB
578fb34361 feat: add import, export, and debug functionalities for shared tools 2025-06-04 18:36:36 +08:00
CaptainB
7a34ba6fe3 feat: add shared resource tool functionality 2025-06-04 17:19:23 +08:00
wxg0103
824e02521c refactor: permission 2025-06-04 17:18:04 +08:00
shaohuzhang1
445a87143b
feat: system profile (#3193) 2025-06-04 17:16:35 +08:00
CaptainB
fb6314cd69 feat: implement file download functionality in document handler 2025-06-04 14:25:01 +08:00
shaohuzhang1
faeee1b92c
feat: log management (#3189) 2025-06-04 14:23:10 +08:00
shaohuzhang1
d92fdb999c
feat: use redis cache (#3185) 2025-06-04 14:21:12 +08:00
shaohuzhang1
bc03deabfc
feat: Resources authorization (#3183) 2025-06-04 13:05:39 +08:00
zhangzhanwei
596dbedd39 fix: Fix Swagger document image upload 2025-06-04 12:01:12 +08:00
CaptainB
d686bc3625 feat: refactor pylint handling and update endpoint for workspace tool 2025-06-04 11:09:58 +08:00
CaptainB
e525f77fa0 feat: refactor pylint handling and update endpoint for workspace tool 2025-06-04 11:08:05 +08:00
CaptainB
56a9e69912 feat: add endpoint to download source files with updated parameter handling 2025-06-04 10:57:32 +08:00
wxg0103
642920e916 refactor: permission 2025-06-04 10:17:17 +08:00
CaptainB
852313217d feat: add migration endpoints for documents and paragraphs with parameter handling 2025-06-03 18:43:41 +08:00
wxg0103
070a5d4ed3 refactor: user add batch delete 2025-06-03 18:35:42 +08:00
CaptainB
efd273b3bc feat: add export and export_zip endpoints for knowledge base and document with image handling 2025-06-03 17:44:13 +08:00
wxg0103
4de998dee2 refactor: user nick_name 2025-06-03 16:48:14 +08:00
CaptainB
aa593f3790 feat: refactor user_id handling and enhance tool query logic 2025-06-03 16:31:07 +08:00
CaptainB
a8a19f357a feat: add endpoint to retrieve embedding model for knowledge base 2025-06-03 16:31:07 +08:00
wxg0103
11ce2e26b5 refactor: permission 2025-06-03 15:54:48 +08:00
CaptainB
15eea403ec feat: remove user_id permission check for embedding model in knowledge processing 2025-06-03 11:24:08 +08:00
CaptainB
787da980b8 feat: rename embedding_mode_id to embedding_model_id across multiple files 2025-06-03 11:20:53 +08:00
shaohuzhang1
43654bddaf
feat: application operate api (#3176) 2025-05-30 20:02:39 +08:00
wxg0103
b1a6c463d0 refactor: user page add role 2025-05-30 11:07:24 +08:00
zhangzhanwei
1dadc06220 feat: System api permission setting 2025-05-29 18:49:00 +08:00
shaohuzhang1
345e588ef6
feat: application list (#3160) 2025-05-28 18:57:09 +08:00
wxg0103
743b04aebf refactor: user role 2025-05-28 17:45:02 +08:00
shaohuzhang1
129d52dff2
fix: common (#3154) 2025-05-28 10:13:47 +08:00
shaohuzhang1
896fb5fa52
feat: application flow (#3152) 2025-05-27 18:24:28 +08:00
wxg0103
0c9d8ccf71 refactor: add login auth permission 2025-05-27 16:17:56 +08:00
shaohuzhang1
6bbb181927
feat: application save (#3151) 2025-05-27 15:21:57 +08:00
wxg0103
30a60c9ab8 refactor: sql 2025-05-27 14:44:57 +08:00
shaohuzhang1
080a6031bd
feat: application save (#3150) 2025-05-27 11:08:55 +08:00
shaohuzhang1
60ff19be17
feat: Application Apikey (#3149)
Co-authored-by: zhangzhanwei <zhanwei.zhang@fit2cloud.com>
2025-05-27 10:41:05 +08:00
wxg0103
ba79dd8582 refactor: user add role setting 2025-05-27 09:47:33 +08:00
shaohuzhang1
41dd3c4f3d
feat: application view init (#3147) 2025-05-26 18:39:53 +08:00
wxg0103
356dbeb2b9 refactor: i18n 2025-05-26 16:46:05 +08:00
shaohuzhang1
9e7279e336
feat: application model (#3146) 2025-05-26 16:37:35 +08:00
wxg0103
b7843fd2bf refactor: user add role 2025-05-26 16:12:08 +08:00
shaohuzhang1
1aa8fe28ef
feat: delete workflow (#3145) 2025-05-26 16:01:43 +08:00
wxg0103
c0b676ed16 refactor: permission 2025-05-23 18:08:25 +08:00
wxg0103
2da3eac1b5 refactor: user model 2025-05-23 18:07:23 +08:00
wxg0103
9dc06909bd refactor: login captcha 2025-05-22 15:42:12 +08:00
wxg0103
abadff25e5 refactor: login captcha 2025-05-21 10:35:17 +08:00
wxg0103
3c5b38dc44 refactor: list 2025-05-20 17:14:12 +08:00
wxg0103
f2b0af25da refactor: permission constants 2025-05-19 16:30:31 +08:00
wxg0103
f618dd4f99 refactor: permission constants 2025-05-19 14:26:45 +08:00
wxg0103
0a1d5c4fbf refactor: permission constants 2025-05-16 18:23:27 +08:00
CaptainB
aa7bc349ab feat: add request handling to UnAssociation and Association API endpoints 2025-05-15 13:48:26 +08:00
wxg0103
8fb8c06e0b refactor: user 2025-05-15 12:07:07 +08:00
CaptainB
e24f211674 feat: add optional user_id parameter to tool queries and serializers 2025-05-15 11:04:54 +08:00
CaptainB
74fac81c7b feat: enhance knowledge pagination to include child folders in response 2025-05-15 10:49:47 +08:00
CaptainB
7780d89c55 feat: add pagination method for tools with folder data in tool.py 2025-05-15 10:40:29 +08:00
CaptainB
b13799d584 feat: add Pylint API for code checking and integrate with tool operations 2025-05-14 14:35:13 +08:00
CaptainB
d85d20694d fix: include desc field in editable fields for folder validation 2025-05-14 12:12:16 +08:00
CaptainB
25da46d13f fix: make desc field optional in KnowledgeFolder and ToolFolder models 2025-05-14 11:31:54 +08:00
CaptainB
6b41d8cff1 chore: remove unused CompareConstants import from document.py 2025-05-14 10:12:52 +08:00
wxg0103
4eed42b6a0 refactor: user add default password 2025-05-13 14:39:47 +08:00
CaptainB
c3581be9bd fix: rename image_name to file_name in zip_split_handle and remove workspace_id assignment in document 2025-05-13 12:47:59 +08:00
CaptainB
bd71ca9eb4 fix: update is_valid method to use dynamic file size limit from Knowledge model 2025-05-13 11:50:08 +08:00
CaptainB
d24532d679 fix: update is_valid method to accept instance parameter for file validation 2025-05-13 11:28:15 +08:00
CaptainB
554b81b59a fix: update has_permissions decorator formatting for knowledge document endpoints 2025-05-13 11:22:06 +08:00
CaptainB
680475cb97 feat: add new permission constants for knowledge documents, paragraphs, and problems 2025-05-13 10:58:56 +08:00
CaptainB
5ca3151e90 fix: update permission constants for document operations and adjust serializer field options 2025-05-12 18:34:15 +08:00
CaptainB
f21d301140 fix: change HTTP methods from PUT to GET for association and unassociation endpoints 2025-05-12 17:13:57 +08:00
CaptainB
6f81d80389 fix: change HTTP methods from GET to PUT for disassociation and related questions endpoints 2025-05-12 16:24:01 +08:00
CaptainB
a5fb2e15c6 feat: add initial SQL migration for tool data and integrate file content retrieval 2025-05-12 11:22:12 +08:00
CaptainB
cb2fb496b4 fix: update ForeignKey on_delete behavior for ApplicationKnowledgeMapping 2025-05-12 10:30:13 +08:00
shaohuzhang1
5ebfe9b5dd
feat: workflow init (#3072) 2025-05-09 18:55:53 +08:00
CaptainB
f6ccc95240 feat: implement source type retrieval and enhance folder deletion logic 2025-05-09 18:31:08 +08:00
CaptainB
1f8907e1cb feat: add GetModelAPI for retrieving model information in knowledge base 2025-05-09 17:50:15 +08:00
CaptainB
1e80a6136a chore: i18n 2025-05-09 17:20:31 +08:00
wxg0103
deb7268be1 refactor: i18n 2025-05-09 14:37:14 +08:00
CaptainB
40d9954c3b chore: i18n 2025-05-09 11:49:07 +08:00
CaptainB
94c5c4197c fix: add type ignore comments for operation_id and tags in various API schemas 2025-05-09 11:29:05 +08:00
CaptainB
6f209d740d feat: add request and response handling for SyncWeb, Embedding, and GenerateRelated APIs 2025-05-09 10:56:11 +08:00
CaptainB
a75501737f feat: add BatchGenerateRelated API for batch processing of related paragraphs 2025-05-08 19:28:58 +08:00
CaptainB
ac698e0c4c feat: add BatchRefresh and BatchGenerateRelated APIs for document processing 2025-05-08 19:16:45 +08:00
CaptainB
54836d549c feat: add Embedding API for re-vectorization of knowledge objects 2025-05-08 17:17:09 +08:00
CaptainB
b6f5a8378a feat: add HitTest API for knowledge base query testing and update SyncWeb API to use knowledge_id 2025-05-08 16:49:12 +08:00
CaptainB
7dcd1a71e8 feat: add SyncWeb and GenerateRelated APIs for knowledge base synchronization and related generation 2025-05-08 16:49:12 +08:00
CaptainB
9f004defd9 feat: add SHA256 hash attribute to knowledge object on save 2025-05-08 12:34:51 +08:00
CaptainB
ab479c422c feat: add delete method to File API for file removal 2025-05-08 12:15:00 +08:00
CaptainB
4d44637ae5 feat: add file size attribute to knowledge object on save 2025-05-08 11:31:16 +08:00
CaptainB
4b30b5b1b5 fix: correct tag casing in File API documentation 2025-05-08 10:55:26 +08:00
wxg0103
0401c01c93 refactor: user add role setting 2025-05-08 10:51:01 +08:00
CaptainB
3010fa835f feat: implement File API for file upload and retrieval with new endpoints 2025-05-08 10:42:00 +08:00
CaptainB
06d5c10ac6 chore: reformat code 2025-05-08 10:00:58 +08:00
CaptainB
906407a15b feat: update Problem API to batch process request data in post method 2025-05-07 18:51:26 +08:00
wxg0103
a90f6c89cb refactor: email setting 2025-05-07 18:09:45 +08:00
CaptainB
a09d0d5171 feat: add ProblemParagraphAPI for retrieving associated paragraphs and update routing 2025-05-07 17:37:34 +08:00
CaptainB
6cdd5b4508 feat: implement Problem API for delete and modify operations with new Operate endpoint 2025-05-07 17:17:41 +08:00
CaptainB
a6c74024b0 feat: implement pagination support for Problem API with new Page endpoint 2025-05-07 17:06:27 +08:00
CaptainB
4995721399 feat: implement Problem API for CRUD operations and batch processing 2025-05-07 16:28:56 +08:00
CaptainB
ecc25796a6 feat: update document and paragraph batch operations to use PUT method and rename classes for clarity 2025-05-07 14:49:32 +08:00
CaptainB
a04c2efa41 feat: add pagination support for paragraph retrieval in Paragraph API 2025-05-07 14:06:27 +08:00
CaptainB
36da813eea feat: implement Paragraph API for CRUD operations and batch deletion 2025-05-07 13:53:04 +08:00
CaptainB
10105ce5ab feat: implement Paragraph API for CRUD operations and batch deletion 2025-05-07 13:51:20 +08:00
CaptainB
bcc7c1acf1 refactor: add noqa comments to suppress linting warnings for folder type retrieval 2025-05-07 12:03:00 +08:00
shaohuzhang1
bcf6ccee20
refactor: File model (#3050) 2025-05-07 11:45:00 +08:00
CaptainB
442dd209a5 feat: add KnowledgeFolderFlatSerializer for flat folder representation in Knowledge API 2025-05-07 10:30:56 +08:00
CaptainB
1448927f4e feat: add ToolFolderFlatSerializer for flat folder serialization in Tool API 2025-05-07 10:29:23 +08:00
CaptainB
4cb513dd3f feat: enhance Tool API to return folder and tool structure for a given folder ID 2025-05-07 10:05:53 +08:00
shaohuzhang1
115e11052c
feat: Resources authorization (#3039) 2025-05-06 18:35:11 +08:00
CaptainB
bd865ceafc feat: add DocumentSplitPatternAPI for segment ID retrieval with workspace and knowledge ID parameters 2025-05-06 17:56:49 +08:00
CaptainB
6f5645e16c feat: add DocumentTreeReadAPI for document pagination and file size limit to knowledge model 2025-05-06 17:39:26 +08:00
CaptainB
c3b979decc feat: add CancelTaskAPI and batch cancellation endpoints for document tasks 2025-05-06 16:47:59 +08:00
CaptainB
e702af8c2b feat: enhance Document API with workspace ID support for get, put, and delete operations 2025-05-06 15:24:36 +08:00
wxg0103
3e9069aac1 refactor: bailian 2025-05-06 15:03:31 +08:00
CaptainB
0e66b8a186 feat: add summary fields to extend_schema for folder and document APIs 2025-05-06 13:55:14 +08:00
CaptainB
24e734fb36 feat: enhance Document API with create and query functionalities 2025-05-06 13:55:14 +08:00
CaptainB
ba5028858c feat: add DocumentBatchCreateAPI for batch document creation 2025-05-05 17:50:13 +08:00
CaptainB
0d3eb431f6 feat: implement batch processing for document creation, synchronization, and deletion 2025-04-30 18:04:40 +08:00
CaptainB
43bef216d5 refactor: reorganize file handling imports into a structured directory 2025-04-30 16:08:17 +08:00
CaptainB
48297d81e5 feat: add initial implementations of various file handling classes for CSV, XLS, and XLSX formats 2025-04-30 15:52:58 +08:00
CaptainB
4dcd150c8d refactor: improve code readability and formatting in common, knowledge, and paragraph modules 2025-04-30 09:57:11 +08:00
wxg0103
132fd1b84d refactor: i18n 2025-04-29 15:45:47 +08:00
CaptainB
3b5a02307c refactor: celery config 2025-04-29 11:48:15 +08:00
CaptainB
870fabe187 chore: add init file for every folder 2025-04-29 10:31:49 +08:00
CaptainB
770089e432 feat: add initial implementation of document and paragraph models with serializers 2025-04-29 10:04:34 +08:00