synapse-sdk 2025.10.3__py3-none-any.whl → 2025.10.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of synapse-sdk might be problematic. Click here for more details.

Files changed (17) hide show
  1. synapse_sdk/devtools/docs/docs/plugins/categories/pre-annotation-plugins/pre-annotation-plugin-overview.md +198 -0
  2. synapse_sdk/devtools/docs/docs/plugins/categories/pre-annotation-plugins/to-task-action-development.md +1645 -0
  3. synapse_sdk/devtools/docs/docs/plugins/categories/pre-annotation-plugins/to-task-overview.md +717 -0
  4. synapse_sdk/devtools/docs/docs/plugins/categories/pre-annotation-plugins/to-task-template-development.md +1380 -0
  5. synapse_sdk/devtools/docs/i18n/ko/docusaurus-plugin-content-docs/current/plugins/categories/pre-annotation-plugins/pre-annotation-plugin-overview.md +198 -0
  6. synapse_sdk/devtools/docs/i18n/ko/docusaurus-plugin-content-docs/current/plugins/categories/pre-annotation-plugins/to-task-action-development.md +1645 -0
  7. synapse_sdk/devtools/docs/i18n/ko/docusaurus-plugin-content-docs/current/plugins/categories/pre-annotation-plugins/to-task-overview.md +717 -0
  8. synapse_sdk/devtools/docs/i18n/ko/docusaurus-plugin-content-docs/current/plugins/categories/pre-annotation-plugins/to-task-template-development.md +1380 -0
  9. synapse_sdk/devtools/docs/sidebars.ts +14 -0
  10. synapse_sdk/plugins/categories/export/actions/export/action.py +8 -3
  11. synapse_sdk/plugins/categories/export/actions/export/utils.py +108 -8
  12. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/METADATA +1 -1
  13. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/RECORD +17 -9
  14. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/WHEEL +0 -0
  15. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/entry_points.txt +0 -0
  16. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/licenses/LICENSE +0 -0
  17. {synapse_sdk-2025.10.3.dist-info → synapse_sdk-2025.10.4.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,198 @@
1
+ ---
2
+ id: pre-annotation-plugin-overview
3
+ title: Pre-annotation 플러그인 개요
4
+ sidebar_position: 1
5
+ ---
6
+
7
+ # Pre-annotation 플러그인 개요
8
+
9
+ Pre-annotation 플러그인은 Synapse 플랫폼을 위한 자동화된 작업 주석 기능을 제공하며, 파일 기반 및 AI 추론 기반 주석 워크플로우를 포괄적인 검증, 진행 추적 및 오류 처리와 함께 지원합니다.
10
+
11
+ ## 빠른 개요
12
+
13
+ **카테고리:** Pre-annotation
14
+ **사용 가능한 액션:** `to_task`
15
+ **실행 방법:** 작업(Job) 기반 실행
16
+
17
+ ## 주요 기능
18
+
19
+ - **파일 기반 주석 (File-based Annotation)**: 파일 URL의 JSON 데이터를 사용한 자동 작업 주석
20
+ - **추론 기반 주석 (Inference-based Annotation)**: 전처리기 플러그인과 모델 추론을 사용한 AI 기반 주석
21
+ - **전략 패턴 아키텍처 (Strategy Pattern Architecture)**: 플러그형 검증, 주석, 메트릭 전략
22
+ - **워크플로우 오케스트레이션 (Workflow Orchestration)**: 실패 시 자동 롤백을 지원하는 7단계 오케스트레이션 워크플로우
23
+ - **진행 추적 (Progress Tracking)**: 실시간 진행 업데이트 및 포괄적인 메트릭
24
+ - **유연한 작업 필터링 (Flexible Task Filtering)**: 다양한 기준을 사용한 고급 작업 필터링
25
+
26
+ ## 사용 사례
27
+
28
+ - 사전 생성된 JSON 파일을 사용한 대량 작업 주석
29
+ - 학습된 모델을 사용한 AI 기반 자동 주석
30
+ - 사람의 검토 전 작업 사전 라벨링
31
+ - 자동 주석을 사용한 데이터셋 준비
32
+ - 모델 보조 주석 워크플로우
33
+ - 대기 중인 작업의 일괄 처리
34
+
35
+ ## 지원되는 주석 방법
36
+
37
+ ### 파일 기반 주석 (`method: 'file'`)
38
+
39
+ 데이터 유닛 파일 사양에 저장된 JSON 파일에서 주석 데이터를 가져와 작업에 적용합니다.
40
+
41
+ **사용 시기:**
42
+
43
+ - 사전 생성된 주석 JSON 파일이 있는 경우
44
+ - 주석이 데이터 유닛의 파일로 저장된 경우
45
+ - 결정론적이고 재현 가능한 주석이 필요한 경우
46
+ - 외부 도구가 주석 파일을 생성한 경우
47
+
48
+ **요구사항:**
49
+
50
+ - `target_specification_name`: 주석 JSON을 포함하는 파일 사양 이름
51
+ - 작업에 지정된 파일 사양이 포함된 데이터 유닛이 있어야 함
52
+ - JSON 파일이 HTTP/HTTPS URL을 통해 접근 가능해야 함
53
+
54
+ ### 추론 기반 주석 (`method: 'inference'`)
55
+
56
+ 전처리기 플러그인을 사용하여 작업 데이터에 대한 모델 추론을 실행하고 자동으로 주석을 생성합니다.
57
+
58
+ **사용 시기:**
59
+
60
+ - 자동 주석을 위한 학습된 모델이 있는 경우
61
+ - AI 보조 주석이 필요한 경우
62
+ - 모델을 통해 이미지/데이터를 처리해야 하는 경우
63
+ - 능동 학습(active learning) 워크플로우를 구현하는 경우
64
+
65
+ **요구사항:**
66
+
67
+ - `pre_processor`: 배포된 전처리기 플러그인의 ID
68
+ - 전처리기가 활성화되어 실행 중이어야 함
69
+ - 작업에 주 이미지 또는 호환 가능한 데이터가 있어야 함
70
+
71
+ ## 구성 개요
72
+
73
+ ### 기본 파라미터
74
+
75
+ ```json
76
+ {
77
+ "name": "Annotation Job",
78
+ "description": "Annotate pending tasks",
79
+ "project": 123,
80
+ "agent": 1,
81
+ "task_filters": {
82
+ "status": "pending"
83
+ },
84
+ "method": "file"
85
+ }
86
+ ```
87
+
88
+ ### 주요 파라미터
89
+
90
+ | 파라미터 | 타입 | 필수 | 설명 |
91
+ | --------------------------- | ------- | ------ | -------------------------------------- |
92
+ | `name` | string | 예 | 액션 이름 (공백 불가) |
93
+ | `description` | string | 아니오 | 액션 설명 |
94
+ | `project` | integer | 예 | 프로젝트 ID |
95
+ | `agent` | integer | 예 | 에이전트 ID |
96
+ | `task_filters` | object | 예 | 작업 필터링 기준 |
97
+ | `method` | string | 예 | 주석 방법: `'file'` 또는 `'inference'` |
98
+ | `target_specification_name` | string | 조건부 | 파일 사양 이름 (파일 방법에 필수) |
99
+ | `pre_processor` | integer | 조건부 | 전처리기 ID (추론 방법에 필수) |
100
+ | `pre_processor_params` | object | 아니오 | 전처리기 구성 파라미터 |
101
+
102
+ ## 빠른 시작
103
+
104
+ ### 파일 기반 주석 예제
105
+
106
+ ```python
107
+ from synapse_sdk.plugins.categories.pre_annotation.actions.to_task import ToTaskAction
108
+
109
+ params = {
110
+ 'name': 'File_Annotation_Job',
111
+ 'project': 123,
112
+ 'agent': 1,
113
+ 'task_filters': {
114
+ 'status': 'pending',
115
+ 'data_collection': 456
116
+ },
117
+ 'method': 'file',
118
+ 'target_specification_name': 'annotation_data'
119
+ }
120
+
121
+ action = ToTaskAction(run=run_instance, params=params)
122
+ result = action.start()
123
+ ```
124
+
125
+ ### 추론 기반 주석 예제
126
+
127
+ ```python
128
+ params = {
129
+ 'name': 'AI_Annotation_Job',
130
+ 'project': 123,
131
+ 'agent': 1,
132
+ 'task_filters': {
133
+ 'status': 'pending'
134
+ },
135
+ 'method': 'inference',
136
+ 'pre_processor': 789,
137
+ 'pre_processor_params': {
138
+ 'confidence_threshold': 0.8
139
+ }
140
+ }
141
+
142
+ action = ToTaskAction(run=run_instance, params=params)
143
+ result = action.start()
144
+ ```
145
+
146
+ ## 워크플로우 단계
147
+
148
+ to_task 액션은 7단계 오케스트레이션 워크플로우를 통해 실행됩니다:
149
+
150
+ 1. **프로젝트 검증 (Project Validation)** - 프로젝트 존재 및 데이터 컬렉션 확인
151
+ 2. **작업 검증 (Task Validation)** - 필터와 일치하는 작업 찾기 및 검증
152
+ 3. **방법 결정 (Method Determination)** - 주석 방법 식별 (file 또는 inference)
153
+ 4. **방법 검증 (Method Validation)** - 방법별 요구사항 검증
154
+ 5. **처리 초기화 (Processing Initialization)** - 메트릭 및 진행 추적 설정
155
+ 6. **작업 처리 (Task Processing)** - 각 작업에 대한 주석 전략 실행
156
+ 7. **마무리 (Finalization)** - 최종 메트릭 집계 및 결과 반환
157
+
158
+ 각 단계는 검증되며 실패 시 자동 롤백을 트리거할 수 있습니다.
159
+
160
+ ## 진행 및 메트릭
161
+
162
+ 액션은 다음에 대한 실시간 업데이트를 제공합니다:
163
+
164
+ - **진행 백분율 (Progress Percentage)**: 전체 완료 백분율
165
+ - **성공 카운트 (Success Count)**: 성공적으로 주석이 추가된 작업 수
166
+ - **실패 카운트 (Failed Count)**: 주석 추가에 실패한 작업 수
167
+ - **대기 카운트 (Standby Count)**: 아직 처리되지 않은 작업 수
168
+
169
+ ## 오류 처리
170
+
171
+ ### 작업 수준 오류
172
+
173
+ 개별 작업 실패는 기록되고 추적되지만 전체 워크플로우를 중지하지 않습니다. 액션은 나머지 작업을 계속 처리합니다.
174
+
175
+ ### 치명적 오류
176
+
177
+ 시스템 수준 오류(예: 잘못된 프로젝트, 네트워크 실패)는 즉시 워크플로우 종료 및 완료된 단계의 롤백을 트리거합니다.
178
+
179
+ ### 자동 롤백
180
+
181
+ 치명적 실패 시 오케스트레이터는 자동으로 다음을 롤백합니다:
182
+
183
+ - 캐시된 프로젝트 데이터 정리
184
+ - 작업 ID 목록 재설정
185
+ - 임시 파일 정리
186
+ - 메트릭 복원
187
+
188
+ ## 다음 단계
189
+
190
+ - **사용자 가이드**: 상세한 사용 지침은 [ToTask 개요](./to-task-overview.md)를 참조하세요
191
+ - **개발자 가이드**: 아키텍처 세부 정보는 [ToTask 액션 개발](./to-task-action-development.md)을 참조하세요
192
+ - **API 레퍼런스**: 전체 API 문서를 살펴보세요
193
+
194
+ ## 관련 문서
195
+
196
+ - [업로드 플러그인](../upload-plugins/upload-plugin-overview.md) - 파일 업로드 및 데이터 수집
197
+ - 플러그인 개발 가이드 - 커스텀 플러그인 생성
198
+ - 전처리기 플러그인 - 모델 배포 및 추론