Skip to content

OCR jobs ​

OCR Jobs turn scanned documents and images into text and data. You create a job that holds the processing rules (which models, which outputs, which language) and a storage bucket, then send documents to it over time. Each file is processed on its own, and the job keeps a result, token usage and cost for every document.

OCR is a community feature. Operators find it as OCR Jobs under the Data group.

Concepts ​

ObjectWhat it is
JobA persistent container with the rules for extraction: OCR model, optional LLM model, outputs, language hint, page cap, storage bucket and an optional callback.
Document (item)One file sent to a job. It has its own status, result, token usage, page count and cost.
OutputsWhat the job produces for each document: Full text, Summary and Structured (JSON).

A job is active, paused or archived. An active job accepts and processes documents. Pausing holds processing until you resume it.

Before you start ​

You needWhereWhy
An OCR modelModel Hub, category OCRReads the document.
An LLM modelModel HubOnly for the Summary and Structured outputs.
A storage bucketFiles (Document Store)The job stores its files there. If there are no buckets, the create form says so.

Create a job ​

  1. Open OCR Jobs and choose New Job.
  2. Identity and storage. Optionally name the job and select the storage bucket.
  3. Models. Select the OCR model. Select an LLM model if you want a summary or structured output.
  4. Outputs. Tick one or more of:
    • Full text — the text extracted from the document.
    • Summary — an LLM summary. You can add a summary prompt with your own instruction.
    • Structured (JSON) — an LLM extracts the fields you define. Build the schema with the visual builder (field name, type, required flag and description; types include string, number, integer, boolean, date, enum, array and object), or supply a JSON schema.
  5. Options. Optionally set a language hint (for example en or tr) and PDF max pages. Leave the page cap empty for unlimited.
  6. Callback. Optionally set a callback URL and a secret if you want Cognipeer to call your system when a document finishes.
  7. Choose to create the job.

Send documents ​

  1. Open the job from the list. The Documents tab has a file picker (PDFs, images and so on, several at once) and a text box for document URLs, one per line.
  2. Choose Send to job. The button is disabled unless the job is active.
  3. Documents are queued and processed in the background. The table shows each document with status, tokens, pages and cost. Choose View result on a row to read the full text, summary and structured output in a dialog.

Use Pause to hold a job and Resume to continue it. JSON and CSV export the job's results.

Track usage and cost ​

The job page summarises documents processed and failed, tokens, and cost. The Usage tab breaks these down:

  • Documents — total sent, processed, failed, success rate and pages processed.
  • Tokens — input, output and total, split into the OCR stage and the LLM stage.
  • Cost — OCR, LLM and total, plus the average cost and tokens per document.

On the job list, tiles show the number of jobs, active jobs, documents processed and total cost.

Callbacks ​

When a callback URL is set, Cognipeer sends a POST to it for these events: ocr.item.succeeded, ocr.item.failed and ocr.job.completed. If a secret is set, each request carries an x-cognipeer-signature header in the form t=<timestamp>,v1=<signature>, so your system can verify it. Delivery is best effort with up to three attempts. Through the API you can restrict the events a job sends.

Work from code ​

The job page has an API tab with ready-made snippets. The client API lets you create jobs, add files, pause and resume, read items and usage, and export results with an API token. A single document can also be extracted in one request, without a job, using the synchronous OCR endpoint. See the OCR API reference and the OCR SDK reference.

OCR for scanned files in other features ​

OCR jobs are one way to read scanned documents. The console also has one shared extraction engine that turns files into text for Document Store uploads (and Convert again), Knowledge Engine uploads, agent attachments, evaluations and the crawler. It converts the file with its built-in converter, and OCR is an optional step on top. OCR is off by default everywhere: without it only the text a file already contains is kept.

You choose OCR where the file comes in:

WhereSetting
A knowledge baseThe extraction section of the knowledge base form (extraction.ocr). See Knowledge Engine.
A Document Store uploadThe OCR fields of the upload form, and when you convert a file again. See Files.
An agentText extraction (OCR) on the agent's Files settings, for files uploaded to its sessions.
A crawlerThe OCR fields of the Content extraction card. See Crawl a website.

The fields are the same everywhere:

FieldMeaning
Read scanned pages (OCR)Off, Auto (scanned pages only) (pages that already have text are kept and only pages without text are read) or Every page (every page is read as a picture; slower and costs more, for files whose text layer is wrong).
EngineA project model that can read documents (an OCR models entry or a Vision LLMs entry from Model Hub), or the Local engine (CPU, Tesseract). A model reads better and keeps tables; the local engine needs no model and runs offline on the server's CPU, with Turkish and English data bundled.
LanguagesLanguage codes such as tr or en. Empty uses Turkish and English.
Maximum pages per documentPages after this number are not read. Empty uses the server's limit.
Also read imagesRead text in pictures inside Word and PowerPoint files, and in image files.

Reading with a project model counts toward the project's ocr quota domain and cost, like an OCR job. Limits and timeouts of the engine are set by the operator with the OCR_* variables; the full list is on the Configuration page.

Permissions and requirements ​

TopicBehaviour
PermissionThe ocr service (RBAC and API token service permissions). It covers the dashboard, the job endpoints and the synchronous OCR endpoint.
ScopeJobs and their documents are project-scoped.
DeletingDeleting a job also deletes all of its documents.
Outbound callsCallback URLs are called from the server.

Studio · Pulse · Console · Agent SDK and more — the Cognipeer documentation hub · Contact Support