프롬프트 어노테이터 스키마
프롬프트 어노테이터 전용 스키마
Section titled “프롬프트 어노테이터 전용 스키마”프롬프트 어노테이터는 text-annotator-data.md를 기반으로 하며, 프롬프트와 답변 작업에 필요한 필드를 추가 확장합니다.
본 문서는 공통 어노테이터 스키마를 상속합니다.
따라서
extra,relations,annotations,annotationsData,annotationGroups,assignmentId의 최상위 구조와AnnotationBase,Classification등 공통 객체 정의는 공통 문서를 참고하세요.
1. 프롬프트 전용 추가 메타데이터(extra)
Section titled “1. 프롬프트 전용 추가 메타데이터(extra)”별도 고유 필드는 정의돼 있지 않습니다. 필요 시 프롬프트 원문·작성자·언어 등 프로젝트 맞춤 속성을 자유롭게 추가합니다.
2. 어노테이션 툴별 고유 데이터
Section titled “2. 어노테이션 툴별 고유 데이터”모든 어노테이션 객체는 AnnotationBase(공통 스키마 정의)를 상속하며,
아래 필드는 해당 툴에서만 추가됩니다.
툴(tool) | 고유 필드 | 타입 | 설명 |
|---|---|---|---|
classification | (고유 필드 없음) | - | 공통 속성만 사용. 질문·답변·분류 등 태깅에 활용 |
prompt | input | InputItem[] | 사용자가 입력한 프롬프트 히스토리 배열 |
answer | model | string | 사용된 LLM 명칭 (예: “o3-mini”) |
output | OutputItem[] | 모델이 생성한 답변 배열 | |
displayName | string | UI 표시 이름 (예: “ChatGPT”) | |
generatedBy | string | 생성 주체 식별자 (예: “chatGPT”) | |
promptAnnotationId | string | 연결된 프롬프트 어노테이션 ID |
input·output 상세 구조는 3-1, 3-2에서 설명합니다.
3. annotationsData 상세 구조
Section titled “3. annotationsData 상세 구조”3-1. Prompt DataItem (tool: “prompt”)
Section titled “3-1. Prompt DataItem (tool: “prompt”)”| 필드 | 타입 | 설명 |
|---|---|---|
id | string | 어노테이션 ID |
tool | string | ”prompt” |
input | InputItem[] | 프롬프트 입력 히스토리 |
InputItem 객체
type: “text” (고정)value: 최종 입력 프롬프트changeHistory:{ text, timestamp }[]– 편집 이력
3-2. Answer DataItem (tool: “answer”)
Section titled “3-2. Answer DataItem (tool: “answer”)”| 필드 | 타입 | 설명 |
|---|---|---|
id | string | 어노테이션 ID |
tool | string | ”answer” |
model | string | 사용 LLM |
output | OutputItem[] | 모델 생성 결과 배열 |
displayName | string | UI 표시용 이름 |
generatedBy | string | 생성 주체 |
promptAnnotationId | string | 대응 프롬프트 어노테이션 ID |
OutputItem 객체
type: “text” (또는 “image”, “json” 등 확장 가능)value: 출력값changeHistory: 수정 이력 배열
4. 어노테이션 간 관계(Relations) 예시
Section titled “4. 어노테이션 간 관계(Relations) 예시”- 하나의 answer 어노테이션은 relation 객체를 통해 대응되는 prompt와 연결합니다.
- classification으로 “정답 여부”, “요약 여부” 등을 태깅할 수 있습니다.