Skip to main content
POST
Sanitize an embedding chunk with AI

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Embedding chunk ID to sanitize

Response

Segment sanitized successfully (preview only — not saved)

success
boolean
Example:

true

sanitizedText
string

The AI-cleaned segment text. Not persisted — use PUT /embedding/{id} to save.

Example:

"This is the cleaned paragraph with noise removed and formatting normalized..."

tokensUsed
integer

Token count consumed by the sanitization LLM call (tallied to parent Upload)

Example:

142

model
string

The LLM model used for sanitization

Example:

"anthropic.claude-3-haiku-20250514-v1:0"