|
11 | 11 | path('workspace/<str:workspace_id>/knowledge/embedding_model', views.KnowledgeView.EmbeddingModel.as_view()),
|
12 | 12 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>', views.KnowledgeView.Operate.as_view()),
|
13 | 13 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/sync', views.KnowledgeView.SyncWeb.as_view()),
|
14 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/generate_related', views.KnowledgeView.GenerateRelated.as_view()), |
15 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/embedding', views.KnowledgeView.Embedding.as_view()), |
| 14 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/generate_related', |
| 15 | + views.KnowledgeView.GenerateRelated.as_view()), |
| 16 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/embedding', |
| 17 | + views.KnowledgeView.Embedding.as_view()), |
16 | 18 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/hit_test', views.KnowledgeView.HitTest.as_view()),
|
17 | 19 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/export', views.KnowledgeView.Export.as_view()),
|
18 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/export_zip', views.KnowledgeView.ExportZip.as_view()), |
| 20 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/export_zip', |
| 21 | + views.KnowledgeView.ExportZip.as_view()), |
19 | 22 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document', views.DocumentView.as_view()),
|
20 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/split', views.DocumentView.Split.as_view()), |
21 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/split_pattern', views.DocumentView.SplitPattern.as_view()), |
22 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_create', views.DocumentView.BatchCreate.as_view()), |
23 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_sync', views.DocumentView.BatchSync.as_view()), |
24 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_delete', views.DocumentView.BatchDelete.as_view()), |
25 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_refresh', views.DocumentView.BatchRefresh.as_view()), |
26 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_generate_related', views.DocumentView.BatchGenerateRelated.as_view()), |
| 23 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/split', |
| 24 | + views.DocumentView.Split.as_view()), |
| 25 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/split_pattern', |
| 26 | + views.DocumentView.SplitPattern.as_view()), |
| 27 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_create', |
| 28 | + views.DocumentView.BatchCreate.as_view()), |
| 29 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_sync', |
| 30 | + views.DocumentView.BatchSync.as_view()), |
| 31 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_delete', |
| 32 | + views.DocumentView.BatchDelete.as_view()), |
| 33 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_refresh', |
| 34 | + views.DocumentView.BatchRefresh.as_view()), |
| 35 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_generate_related', |
| 36 | + views.DocumentView.BatchGenerateRelated.as_view()), |
27 | 37 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/web', views.WebDocumentView.as_view()),
|
28 | 38 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/qa', views.QaDocumentView.as_view()),
|
29 | 39 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/table', views.TableDocumentView.as_view()),
|
30 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_hit_handling', views.DocumentView.BatchEditHitHandling.as_view()), |
31 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/template/export', views.Template.as_view()), |
32 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/table_template/export', views.TableTemplate.as_view()), |
33 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/migrate/<str:target_knowledge_id>', views.DocumentView.Migrate.as_view()), |
34 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>', views.DocumentView.Operate.as_view()), |
35 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/sync', views.DocumentView.SyncWeb.as_view()), |
36 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/refresh', views.DocumentView.Refresh.as_view()), |
37 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/cancel_task', views.DocumentView.CancelTask.as_view()), |
38 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/batch_cancel_task', views.DocumentView.BatchCancelTask.as_view()), |
39 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/export', views.DocumentView.Export.as_view()), |
40 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/export_zip', views.DocumentView.ExportZip.as_view()), |
41 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/download_source_file', views.DocumentView.DownloadSourceFile.as_view()), |
42 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph', views.ParagraphView.as_view()), |
43 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/batch_delete', views.ParagraphView.BatchDelete.as_view()), |
44 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/batch_generate_related', views.ParagraphView.BatchGenerateRelated.as_view()), |
45 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/migrate/knowledge/<str:target_knowledge_id>/document/<str:target_document_id>', views.ParagraphView.BatchMigrate.as_view()), |
46 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/association', views.ParagraphView.Association.as_view()), |
47 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/unassociation', views.ParagraphView.UnAssociation.as_view()), |
48 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<str:paragraph_id>', views.ParagraphView.Operate.as_view()), |
49 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<str:paragraph_id>/problem', views.ParagraphView.Problem.as_view()), |
50 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<int:current_page>/<int:page_size>', views.ParagraphView.Page.as_view()), |
| 40 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/batch_hit_handling', |
| 41 | + views.DocumentView.BatchEditHitHandling.as_view()), |
| 42 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/template/export', |
| 43 | + views.Template.as_view()), |
| 44 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/table_template/export', |
| 45 | + views.TableTemplate.as_view()), |
| 46 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/migrate/<str:target_knowledge_id>', |
| 47 | + views.DocumentView.Migrate.as_view()), |
| 48 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>', |
| 49 | + views.DocumentView.Operate.as_view()), |
| 50 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/sync', |
| 51 | + views.DocumentView.SyncWeb.as_view()), |
| 52 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/refresh', |
| 53 | + views.DocumentView.Refresh.as_view()), |
| 54 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/cancel_task', |
| 55 | + views.DocumentView.CancelTask.as_view()), |
| 56 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/batch_cancel_task', |
| 57 | + views.DocumentView.BatchCancelTask.as_view()), |
| 58 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/export', |
| 59 | + views.DocumentView.Export.as_view()), |
| 60 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/export_zip', |
| 61 | + views.DocumentView.ExportZip.as_view()), |
| 62 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/download_source_file', |
| 63 | + views.DocumentView.DownloadSourceFile.as_view()), |
| 64 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph', |
| 65 | + views.ParagraphView.as_view()), |
| 66 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/batch_delete', |
| 67 | + views.ParagraphView.BatchDelete.as_view()), |
| 68 | + path( |
| 69 | + 'workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/batch_generate_related', |
| 70 | + views.ParagraphView.BatchGenerateRelated.as_view()), |
| 71 | + path( |
| 72 | + 'workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/migrate/knowledge/<str:target_knowledge_id>/document/<str:target_document_id>', |
| 73 | + views.ParagraphView.BatchMigrate.as_view()), |
| 74 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/association', |
| 75 | + views.ParagraphView.Association.as_view()), |
| 76 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/unassociation', |
| 77 | + views.ParagraphView.UnAssociation.as_view()), |
| 78 | + path( |
| 79 | + 'workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<str:paragraph_id>', |
| 80 | + views.ParagraphView.Operate.as_view()), |
| 81 | + path( |
| 82 | + 'workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<str:paragraph_id>/problem', |
| 83 | + views.ParagraphView.Problem.as_view()), |
| 84 | + path( |
| 85 | + 'workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<str:document_id>/paragraph/<int:current_page>/<int:page_size>', |
| 86 | + views.ParagraphView.Page.as_view()), |
51 | 87 | path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem', views.ProblemView.as_view()),
|
52 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/batch_delete', views.ProblemView.BatchDelete.as_view()), |
53 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/batch_association', views.ProblemView.BatchAssociation.as_view()), |
54 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<str:problem_id>', views.ProblemView.Operate.as_view()), |
55 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<str:problem_id>/paragraph', views.ProblemView.Paragraph.as_view()), |
56 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<int:current_page>/<int:page_size>', views.ProblemView.Page.as_view()), |
57 |
| - path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<int:current_page>/<int:page_size>', views.DocumentView.Page.as_view()), |
58 |
| - path('workspace/<str:workspace_id>/knowledge/<int:current_page>/<int:page_size>', views.KnowledgeView.Page.as_view()), |
| 88 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/batch_delete', |
| 89 | + views.ProblemView.BatchDelete.as_view()), |
| 90 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/batch_association', |
| 91 | + views.ProblemView.BatchAssociation.as_view()), |
| 92 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<str:problem_id>', |
| 93 | + views.ProblemView.Operate.as_view()), |
| 94 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<str:problem_id>/paragraph', |
| 95 | + views.ProblemView.Paragraph.as_view()), |
| 96 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/problem/<int:current_page>/<int:page_size>', |
| 97 | + views.ProblemView.Page.as_view()), |
| 98 | + path('workspace/<str:workspace_id>/knowledge/<str:knowledge_id>/document/<int:current_page>/<int:page_size>', |
| 99 | + views.DocumentView.Page.as_view()), |
| 100 | + path('workspace/<str:workspace_id>/knowledge/<int:current_page>/<int:page_size>', |
| 101 | + views.KnowledgeView.Page.as_view()), |
59 | 102 |
|
60 | 103 | ]
|
0 commit comments