Commit Graph

1329 Commits

Author SHA1 Message Date
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
CaptainB
8c362b0f99 feat: update translation strings and add new error messages in django.po 2025-04-28 18:41:41 +08:00
wxg0103
06f834b7e3 feat: user manage 2025-04-28 17:36:56 +08:00
shaohuzhang1
5481b8a2aa feat: auth 2025-04-28 14:41:46 +08:00
shaohuzhang1
118db9dd14
fix: authentication errors (#3012) 2025-04-28 13:03:54 +08:00
CaptainB
0df7c7247d feat: implement web knowledge synchronization with ForkManage and related handlers 2025-04-28 11:53:38 +08:00
CaptainB
ee37d7c320 feat: implement web knowledge synchronization with ForkManage and related handlers 2025-04-28 11:27:59 +08:00
shaohuzhang1
c79479d80b
feat: User profile returns permission role information (#3005) 2025-04-27 18:27:35 +08:00
shaohuzhang1
7bda26d92a
feat: Improve workspace resource authorization (#3004) 2025-04-27 18:14:50 +08:00
wxg0103
7aa294db38 feat: support create user 2025-04-27 17:59:47 +08:00
CaptainB
1e86919882 feat: remove KnowledgeLarkCreateAPI and KnowledgeLarkView classes 2025-04-27 17:43:20 +08:00
CaptainB
3e7bc1dae0 feat: remove KnowledgeYuque and KnowledgeLark classes 2025-04-27 17:39:22 +08:00
wxg0103
bca128ec39 feat: support create user 2025-04-27 16:26:40 +08:00
CaptainB
b1d13f501f feat: reduce module depth limit from 3 to 2 2025-04-27 10:46:34 +08:00
CaptainB
bb4b35bfe8 feat: enhance module depth validation with current depth tracking 2025-04-27 10:42:18 +08:00
CaptainB
f7a4aca0e8 feat: implement knowledge creation APIs for base, web, lark, and yuque 2025-04-25 20:31:59 +08:00
CaptainB
724686762e feat: add knowledge management API and permissions 2025-04-25 18:18:47 +08:00
wxg0103
83ace97ecc refactor: model 2025-04-25 18:12:55 +08:00
wxg0103
7f492b4d92 refactor: openai 2025-04-25 17:53:22 +08:00
CaptainB
57c6c9916e feat: implement module depth validation and refactor check_depth method 2025-04-25 15:37:44 +08:00
CaptainB
fdb7aeb47b feat: implement module depth validation and refactor check_depth method 2025-04-25 15:36:27 +08:00
CaptainB
3205ff2a65 feat: add knowledge management 2025-04-25 14:58:22 +08:00
CaptainB
ec643fca7f feat: add initial model structure for knowledge management 2025-04-25 14:06:23 +08:00
CaptainB
f08b551a72 chore: fix typo. 2025-04-25 13:32:26 +08:00
wxg0103
ff41b1ff6e refactor: tokens 2025-04-25 10:17:50 +08:00
CaptainB
f05a4a67c5 feat: refactor response serializers for model parameters and lists 2025-04-24 13:42:58 +08:00
CaptainB
4c38e8a82b feat: add dynamic SQL execution and pagination functionality with custom query compiler 2025-04-24 11:37:11 +08:00
CaptainB
fbb4e7d449 feat: add __init__.py file to initialize the package 2025-04-24 11:10:58 +08:00
CaptainB
21097d7164 feat: add depth validation for module creation to limit hierarchy to 3 levels 2025-04-24 10:49:07 +08:00
CaptainB
91f16aa394 feat: add ToolEditRequest serializer for editing tool properties 2025-04-23 11:34:19 +08:00
CaptainB
a9d962c1f1 feat: implement RestrictedUnpickler for secure deserialization and enhance import functionality 2025-04-23 10:33:26 +08:00
wxg0103
cc0e431605 refactor: remove image params 2025-04-22 18:22:50 +08:00
CaptainB
11331a60e0 feat: enhance Tool API by adding module_id and tool_type parameters, and refactor query handling 2025-04-22 17:53:47 +08:00
CaptainB
bbd7079166 feat: add import and export endpoints to ToolView for workspace tools 2025-04-22 17:06:39 +08:00
wxg0103
55705593a9 feat: remove qwen 2025-04-22 14:35:09 +08:00
wxg0103
6d4f5dc1c3 feat: add model setting 2025-04-22 10:45:11 +08:00
CaptainB
220168c4bf chore: add some i18n code 2025-04-21 13:23:22 +08:00
CaptainB
a8cda7d4a4 feat: consolidate module and tool views by removing redundant classes and updating API endpoints 2025-04-21 10:59:42 +08:00
wxg0103
39841cb344 feat: add model setting 2025-04-21 10:24:13 +08:00
wxg0103
d3346deb62 feat: add model setting 2025-04-21 09:10:25 +08:00
CaptainB
16cafec6af fix: update module and tool URLs to avoid duplicate paths for ModuleTreeView and ToolTreeView 2025-04-18 21:16:31 +08:00
CaptainB
2c0cb5b6e6 feat: update module and tool delete APIs to use DefaultResultSerializer for responses 2025-04-18 19:11:26 +08:00
CaptainB
7c15082e53 feat: update API documentation to specify retrieval of tool by module 2025-04-18 19:05:53 +08:00
CaptainB
83b494f700 feat: add DefaultResultSerializer to module and tool delete operations responses 2025-04-18 18:58:49 +08:00
CaptainB
fe032822f4 feat: add ToolTreeView and ToolTreeReadAPI for retrieving tools by workspace and module 2025-04-18 17:54:06 +08:00
wxg0103
6f6b163416 feat: add model setting 2025-04-18 17:45:15 +08:00
CaptainB
9b0f9b04b7 refactor: remove tool_type field and update imports in tool model 2025-04-18 17:08:59 +08:00
CaptainB
0b8f5d7597 feat: implement CRUD operations for tools with API views 2025-04-18 16:42:46 +08:00
CaptainB
32111f6a8f fix: improve module tree query to use Q object for filtering by workspace_id 2025-04-18 15:17:04 +08:00
CaptainB
8f0dd16949 fix: improve module tree query to use Q object for filtering by workspace_id 2025-04-18 15:01:34 +08:00
liqiang-fit2cloud
ffe8900fb2 build: init directory. 2025-04-18 14:10:16 +08:00
CaptainB
d49fd74305 feat: add ToolModule model and API for managing tool modules with workspace support 2025-04-18 13:33:29 +08:00
shaohuzhang1
dcb77bbe16
feat: Captcha (#2913) 2025-04-17 19:16:54 +08:00
wxg0103
063393d659 feat: add model setting 2025-04-17 18:05:31 +08:00
wxg0103
946de675ff feat: add model setting 2025-04-17 18:01:33 +08:00
shaohuzhang1
934871f5c6 feat:Use distcache 2025-04-17 17:16:45 +08:00
shaohuzhang1
9108971fdc
fix: Swagger warning(#2909) 2025-04-17 14:27:58 +08:00
CaptainB
4c23b9aded feat: implement Tool model and related API for Tool management 2025-04-17 14:11:57 +08:00
shaohuzhang1
342ef6df30 feat: authentication demo 2025-04-17 10:40:07 +08:00
shaohuzhang1
3351968969 feat: authentication demo 2025-04-17 10:35:02 +08:00
shaohuzhang1
5f902ef5de
feat: authentication (#2906) 2025-04-16 20:09:00 +08:00
CaptainB
342f984a3b feat: update UUID generation to use uuid.uuid7 and add uuid-utils dependency 2025-04-16 15:02:37 +08:00
shaohuzhang1
04642eb497 feat: authentication 2025-04-15 20:37:38 +08:00
CaptainB
5ffd3423ff feat: load environment variables from .env file and update config loading logic 2025-04-15 15:09:26 +08:00
shaohuzhang1
e58a5507a9 init project 2025-04-14 20:11:23 +08:00
CaptainB
c78a6babb6 ci: v2 2025-04-11 15:47:59 +08:00
wxg0103
a4f27249ed fix: openai error 2025-04-10 14:41:05 +08:00
liqiang-fit2cloud
4ae02c8d3e security: fix reverse shell vulnerability in function library. 2025-04-09 10:01:11 +08:00
shaohuzhang1
3557ea50fa
fix: Missing parameters such as character length when creating a knowledge base (#2827) 2025-04-08 17:24:33 +08:00
shaohuzhang1
1a704f1c25
fix: Workflow debugging for authorized applications will result in an error message indicating unauthorized access to the model (#2819) 2025-04-08 10:51:35 +08:00
wxg0103
7ca0a7bd02 fix: Missing fields in exported logs
--bug=1054500 --user=王孝刚 【应用】对话日志导出,没有携带用户信息 https://www.tapd.cn/57709429/s/1681984
2025-04-08 10:12:20 +08:00
shaohuzhang1
5e43bb9d2a
fix: jieba 分词使用全模式 (#2813) 2025-04-07 18:51:32 +08:00
shaohuzhang1
76d050bea4
feat: New condition for determining whether the discriminator is true or not (#2809) 2025-04-07 14:07:30 +08:00
wxg0103
add9d1bab8 fix: In the permission settings, the knowledge base list does not distinguish between knowledge base types, and all are marked with the icon of the general knowledge base.
--bug=1054142 --user=王孝刚 【团队成员】权限设置中,知识库列表没有区分知识库类型,都用通用知识库的图标标识 https://www.tapd.cn/57709429/s/1681104
2025-04-07 13:53:39 +08:00
shaohuzhang1
867c53984b
fix: The local rearrangement model cannot be loaded (#2805) 2025-04-07 11:22:01 +08:00
CaptainB
560890f717 fix: limit chapter title length to 256 characters in pdf_split_handle.py
--bug=1054363 --user=刘瑞斌 【知识库】导入PDF文档,分段标题长度超长时,没有自动截断 https://www.tapd.cn/57709429/s/1681044
2025-04-07 10:54:59 +08:00