본문으로 건너뛰기

Playground

송장 추출: 송장 번호와 금액은?

송장 번호와 금액은? Clairic이 송장 텍스트에서 둘 다 추출합니다. 미지급 총액이 "확인 예정"이면 금액은 null입니다. 입력이 값을 정하지 못하면 Clairic은 null을 반환하며, 송장 번호는 그대로 추출됩니다.

샘플 결과는 선택한 모델에 따라 바뀌지 않습니다.

Clairic 청구: 요청 내용 4KB마다 1블록, 4KB 미만도 1블록이며 블록당 2 크레딧입니다. 추출 필드 수와 관계없이 요청당 한 번 과금됩니다.

요청

state
text/plain
INVOICE INV-2291From: Northwind SupplyTo: Contoso LtdIssued: 2026-09-02Total due: 1080.00

필드

fields
application/json
{  "invoice_number": {    "type": "text",    "instructions": "The invoice id printed on the document."  },  "amount": {    "type": "number",    "instructions": "The total amount due. Do not invent a currency symbol."  }}

결과

샘플 데이터
두 예제 비교

이 두 예시는 세부 사항 하나만 다릅니다. 결과가 그에 따라 바뀝니다.

무엇이 바뀌었는지완전한 인보이스 → 금액 누락

이 결과는 샘플 데이터이며 라이브 모델 실행이 아닙니다. 로그인하면 자신의 콘텐츠로 시도할 수 있습니다.
invoice_number: INV-4402 → INV-2291 amount: null → 1080
invoice_numbertext
INV-2291값
제공자 confidence0.99
누락 확률0.01
amountnumber
1080값
제공자 confidence0.96
누락 확률0.02

코드 복사

SYSTEM_ONE_API_KEY를 설정하세요. 스니펫은 게시된 카탈로그 모델 ID를 사용합니다.

요청 JSON
application/json
{"model":"clairic","state":"INVOICE INV-2291\nFrom: Northwind Supply\nTo: Contoso Ltd\nIssued: 2026-09-02\nTotal due: 1080.00","fields":{"invoice_number":{"type":"text","instructions":"The invoice id printed on the document."},"amount":{"type":"number","instructions":"The total amount due. Do not invent a currency symbol."}}}
cURL · POST /v1/systemone
sh
curl "https://system-one.dev/v1/systemone" \  -H "Authorization: Bearer $SYSTEM_ONE_API_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: saved-operation-id' \  --data '{"model":"clairic","state":"INVOICE INV-2291\nFrom: Northwind Supply\nTo: Contoso Ltd\nIssued: 2026-09-02\nTotal due: 1080.00","fields":{"invoice_number":{"type":"text","instructions":"The invoice id printed on the document."},"amount":{"type":"number","instructions":"The total amount due. Do not invent a currency symbol."}}}'
TypeScript
TypeScript
// npm install @system-one-ai/core@0.8.0 @system-one-ai/adapter-system-one@0.7.0 @system-one-ai/transport-fetch@0.8.0import { createSystemOne } from '@system-one-ai/core';import { systemOneAdapter } from '@system-one-ai/adapter-system-one';import { createFetchTransport } from '@system-one-ai/transport-fetch';const client = createSystemOne({  baseURL: "https://system-one.dev/v1",  apiKey: process.env.SYSTEM_ONE_API_KEY!,  model: "clairic",  adapter: systemOneAdapter,  transport: createFetchTransport(),  timeoutMs: 30_000,  maxRetries: 0,});const result = await client.extract({  model: "clairic",  state: "INVOICE INV-2291\nFrom: Northwind Supply\nTo: Contoso Ltd\nIssued: 2026-09-02\nTotal due: 1080.00",  fields: {    "invoice_number": {      "type": "text",      "instructions": "The invoice id printed on the document."    },    "amount": {      "type": "number",      "instructions": "The total amount due. Do not invent a currency symbol."    }  },}, { headers: { 'Idempotency-Key': crypto.randomUUID() } });result.answers.invoice_number.valueresult.answers.amount.valueresult.response.requestId;