Specification

Specification

What Kalamu must do, and why. The README is the short introduction; the roadmap says what is built. Keep this file in step with decisions as they are made (decisions).

Why

More and more colleagues ask how to use AI to transcribe their recordings and documents. The existing tools work, but they assume some technical comfort:

Kalamu packages the same workflows as an ordinary desktop app for Windows and macOS, built with Rust and Tauri. Install it, paste an API key, pick a file or a folder, press Start. Its users are researchers, historians first, who are not technical: every screen must stay plain and friendly, with the advanced choices folded away.

Starting point: existing code

Kalamu does not start from scratch. Three existing projects are reviewed for each part and their tested pieces carried over:

Where Kalamu departs from these projects, the reason is written down in decisions.

Tasks

Task Input Output
Extract text (printed and handwritten) PDF, JPEG, PNG, TIFF, or several images read as the pages of one document Text per page, its lines kept as on the page or joined into running text
Transcribe audio or video .mp3, .wav, .m4a, .mp4…, or a public YouTube link Transcript with optional speakers and timestamps; speakers can be given names
Analyse texts Text, Word, PDF, photographed pages, photographs and other images, and the results of earlier jobs The researcher’s own fields for each document: a summary, the people and places it names, its tone, what an image shows…
Detailed table of contents A long PDF, a multi-page image or several images read as one document: a newspaper or magazine issue, an archival file scanned in one piece, a book or report One entry per article or item, with its title, its pages and the researcher’s fields
Correct existing text A PDF’s text layer, or a text or Word file from a digital library The text corrected page by page or passage by passage, its spelling of the time kept
Translate a text A PDF’s text layer, a text or Word file, or the text of an earlier result The text in the language chosen, page by page or passage by passage, nothing summarised or left out

OCR and HTR are one task. Current vision models read print and handwriting with the same call, so the app has a single Extract text task and the difference lies in the prompt: users pick a preset, printed or typed document, newspaper or magazine or handwritten document or manuscript, or write their own. There is one preset per kind of material, never one per language or script: each reads any language, left to right or right to left (Arabic and Ajami included), while the language and the lines are chosen in New job (decision). Mixed material, such as a typed report with handwritten notes, needs no separate pass.

YouTube videos are transcribed from their link. New job offers Transcribe YouTube beside the three tasks: paste one or more watch, youtu.be, Shorts or live links, and the transcript comes out as for a recording, in the same formats. Gemini fetches the video itself, so it is never downloaded or stored, which also keeps within YouTube’s terms; only models whose catalogue entry reads YouTube links are offered (Gemini today). Only public videos can be read. A video is identified by its id, so the same video under another form of link comes from the cache, and provenance.json records its address, title and when it was read. Each video is named after its title, which the app asks of YouTube when the link is added, and a private or removed video is refused then. Results go to a chosen folder, since a video has no folder of its own; the folder last chosen is offered. In the review the video sits on the dark stage like a scan, behind a poster: YouTube’s privacy-enhanced player loads only when the researcher plays, the line being spoken is highlighted and kept in view, and clicking a line plays the video from there. Videos whose owner forbids embedding, or an offline PC, get a card that opens the video on YouTube.

Line breaks are a choice of the job, offered in plain words for every text extraction:

The choice is added to whichever prompt is used, so it works with every preset, the user’s own included. Models that take no prompt (Mistral OCR) keep their own layout, which New job says.

An analysis is a set of fields the researcher defines, filled in for each document. Each field has a name, a kind of answer and, in the researcher’s words, what belongs in it:

Any field can ask for a one-sentence reason. Ready-made analyses cover the common needs (a summary with keywords, its first sentence short enough for a catalogue, a social-science publication’s question, argument, theory, methods, data, case and findings for a literature review, people, places and organisations, the tone of a document, and an image’s description, kind, keywords, written text and the names that text gives), and common fields are one click away when building one. The image description says only what can be seen: people by number, activity and dress, never an identity guessed from a face, and no date, place or name the image does not itself state (#168). When every source is an image, New job chooses it for the researcher, unless they chose a prompt themselves. When the sources include images, New job offers only models that read images, and for an analysis of a PDF only models that read PDFs; a job that asks a model for what it cannot read (a saved pipeline or workflow, an older window) is refused before anything is sent, for the reason each page would have failed with (decision). The app turns the fields into each provider’s structured output, so the answer always has exactly these fields, and checks it again before storing it: an answer that breaks the fields is asked for again, never stored empty. An answer that leaves every field empty for a text of more than 500 words is refused the same way, and asked again with more thinking where the model has it (the next level up, to High at most), the answer kept recording the level it was sent at (decision). Named entity recognition and sentiment analysis are analyses, not separate tasks.

A detailed table of contents is read in two steps, as iwac-ai-pipelines indexes magazine issues. A model that reads page images lists the articles or items on each page (title, a note such as “continued on page 5”, the researcher’s fields for that part); then a model that reads text combines the pages into one entry per article or item, with every page it is on. Reading the pages is the hard part and combining them the easy one, so the second step can run on a smaller, cheaper model, from any provider: Gemini Pro may read and Mistral combine. New job offers the reading provider’s cheapest model by default, so one key is enough. Presets cover a newspaper or magazine issue, an archival file item by item (kind of document, date, sender, addressee, summary, names: an archivist’s inventory) and a book, report or thesis; the entry’s fields are edited in Prompts as an analysis’s are, title and pages always included (decision).

A table of contents’ entries become items read on their own (#50). Once the entries are checked, Items in the review makes one item per entry: its title, its pages in reading order and its fields, kept apart from the table of contents, which never changes. Items are then the researcher’s: renamed, given other pages (1, 3-5, 8 (left), as the file numbers its pages), joined to the next (an article and its continuation), split in two, added and removed; entries whose pages the document does not have are reported. An item is made of whole pages, so two items on one page each take all of it, and the list says so. Selected items go to a new job, Extract the text or Analyse, each as a PDF of its own pages cut from the source and frozen like corrected text: the job’s results are written beside the source under the item’s name, provenance.json names the item, and an item given other pages afterwards marks the job out of date without changing what it read. Export writes each item’s pages as a PDF with a list of the items as an Excel workbook, CSV and JSON (decision). Only a PDF’s items can be cut out so far.

A result’s text can go into a new round. Use this text in a new job on an extraction, a transcription, a correction or a translation, on the job’s page or among a project document’s results, freezes the text as the researcher left it, corrections and speaker names included (from a document, only that document’s), and opens an analysis of it, a correction or a translation of it, or Workflows to run a saved workflow or an example on it: nothing is read again or exported and imported. Workflows that start by reading scans or recordings are shown but cannot be chosen for text. The frozen copy never changes, so a correction made afterwards does not alter what the analysis read; the analysis is marked out of date, with a way to analyse the corrected text, whose answers are new ones beside the old (decision, #47). Pages that could not be read are left out and named in provenance.json, with how much of the text had been reviewed.

An interview analysed from its transcript. On a transcription, the same menu offers Analyse this interview: one question, What is your research about?, answered in a sentence or two or left empty, and one button; another model and the language of the answer are under More choices. The answer has a short summary, the interview’s themes, keywords and passages worth quoting. A theme or a passage is an entry that quotes the text, a kind of field any analysis prompt may use beside its others: each entry has its own small fields and one or more quotations. The transcript is sent with its turns numbered; the model names the turn and gives the words; Kalamu looks for those words in that turn, then in the nearest, and keeps a quotation only when it finds it word for word, forgiving nothing but spacing, the kind of apostrophe or quotation mark, an ellipsis, and what a model wraps a quotation in. What is kept is the transcript’s own text with its place in it; the speaker and the time are the turn’s, copied by Kalamu and never taken from the model. A quotation found nowhere is left out and counted, an entry left with none is dropped and counted, and the result says how many; an answer none of whose quotations can be found is refused, paid for and asked again like any broken answer. A scan or a recording cannot be analysed this way before it is read. In the review each entry is a card; a quotation opens the transcript at its turn and plays the recording there. The researcher edits an entry’s fields and removes an entry or a quotation, as a layer over the model’s answer; a quotation’s words cannot be changed. A long interview is read in parts. Each analysis model’s catalogue entry gives the most it reads at once; a transcript whose characters over four exceed it is cut at whole turns into parts as even as it allows, each well under that limit (seven tenths of it, room left for the instructions and the answer) and repeating the last two turns of the one before. Each part is sent with its turns numbered as in the whole transcript, and its quotations are found in the whole transcript like any. One more request then brings the parts together: it is sent what each part found, every quotation by a number (Q12), the same quotation found by two parts that overlap numbered once, and answers each entry with the numbers of its quotations, never words; Kalamu puts each quotation back from its number as the part kept it, so this step can group, order and leave out quotations but neither change nor add one, and a number it does not know is left out and counted. The dialog says so beside the cost, This interview is long: it will be read in 3 parts, then brought together, the cost counting every part and the step after them; the review says it was read in 3 parts in one line above the answers. A part that could not be read leaves the others brought together and is named by its minutes, The part from 01:02:10 to 01:20:00 could not be read: its themes and quotations are missing, with Read it again, which sends that part alone and brings the parts together again; the files name it where it stands and provenance.json lists the turns read and not read. Each part and the step after them are pieces, cached and resumed as any: stopping part-way sends no part already read again. A transcript that fits is read whole in one request, exactly as before. Only a transcript the model cannot read even in parts is refused before Start: one turn of it alone too long (a lenient measure, so only what surely cannot fit is refused), named in place of the cost, This transcript is too long for Gemma 4 E4B: about 12,000 words, where it reads about 11,000 at once, with Start disabled until another model is chosen under More choices; the engine refuses such a job when it is created, before anything is sent, and New job names the text above Start, which stays off. Any other analysis sends each text whole, so a text longer than the model reads at once is refused and named the same way (long-text.txt is too long for Gemma 4 E2B: about 48,000 words, where it reads about 11,000 at once). A model the catalogue gives no limit is left to its provider’s own refusal (decision). The researcher’s own themes or interview guide. Under More choices, never on the default path, a box takes the researcher’s own themes or interview guide, one per line. They are sent with the question (and so enter the cache key, another guide being another analysis), and kept with a description kept for the next interviews. Each theme of the answer says where it comes from, The researcher’s guide or The interview, shown on its card in the interface language and written in every file; a theme of the guide the interview does not take up is listed apart, under Guide themes not found, rather than backed with weak quotations. The guide is recorded with the set-up’s options in provenance.json. A quotation added by the researcher. A passage selected in the transcript beside the answers has, from its menu (a right click, the menu key or Shift+F10), one action, Add as a quotation, listing the entries it can go to; Kalamu finds the passage in the text, within one turn, its speaker and time the turn’s, and keeps it in the researcher’s corrections, the model’s answer unchanged. It is marked as theirs, in their blue rule and Added by you, removed as any quotation and taken back from its toast, and written in every file as added by the researcher. A correction holding one is kept only while the text holds it there, exactly. A research description is kept with a prompt. Under the box, Keep this for my next interviews saves what was typed, under a name, as a prompt of the researcher’s own: the interview prompt with the description. Once one is kept, the dialog lists them above the box, the last one used chosen, beside A new description; someone who has kept none sees the one box as before. In Prompts, an analysis prompt whose entries quote the text has the same box, What is your research about?, so a copy of the interview prompt written there is offered by the dialog too. The description is sent as one typed would be, so the same words cost nothing twice whichever way they came, and one typed for a job replaces the prompt’s (decision, #38).

Documents read against a research question. A researcher with 400 scanned pages or 150 articles already read into text asks which of them speak of their question, why, and where. In a project, the documents chosen offer Which of these speak of my question?: one box, Your research question, and one button; how many documents will be read and which are left out (nothing read into text yet; read more than once with no reading preferred, never chosen for the researcher) are said under it, with the model and the estimated cost, another model and the language of the answer under More choices. Each document is read in its corrected text, frozen as Use this text freezes it: the preferred, or the only, correction, extraction or transcription, else a text file’s own words; a translation is not, its passages not being the document’s words. The default prompt Does it speak of my question? answers, for each document, its relevance (Relevant, Partly relevant, Not relevant or Unsure, which the prompt tells the model is an honest answer), a reason in a sentence or two, and up to three passages, entries that quote the text as an interview’s do: a page’s paragraphs are its numbered passages, each passage kept only when found word for word, with its page; a document that does not speak of the question has none, and none is invented to fill the list. It is an analysis job like any other, resumable, cached for the same question, costed; its prompt is also offered in New job. A long document is read in parts, as a long interview is: its numbered passages cut at whole passages, each part told it holds passages (a document is never described to the model as words said), the parts brought together by the same step, which is sent each quotation with its page; the screening prompt tells that step that the whole document is Relevant if any part read is, Partly relevant if any part is, Unsure if any part is, and Not relevant only if every part read is. Its passages keep their pages, the cost before Start counts every part, and a part not read is named by its pages, Pages 4 to 7 could not be read. Only a document one passage of which the model cannot read even alone is left out, named in the dialog with the others left out, Left out, too long for Gemma 4 E4B even read in parts, and the job reads the rest; the cost said is theirs. The question is kept with the project: analyses that asked the same question with the same prompt and model are one, a document’s newest answer counting, the same prompt being the prompt as each run froze it (a question asked under a preset edited since is a group of its own, followed in the filter by first asked and the date it was first asked, and the dialog asking it again says the prompt has changed); once documents have been added since, one line under the table’s filters says 3 documents have not been read against “…” yet with Read the new documents against this question, which opens the same dialog over those documents alone with the question, the model and the languages it was asked with, so only they are paid for, and their answers join the others in the filter, the rows and the table exported (decision, decision, decision, #51).

Existing text is corrected, not read again. Many researchers already have machine-read text, often noisy: the text layer of a PDF from a digital library, or a text file downloaded beside it. Correct existing text sends that text, page by page (or in passages of a few pages for a text file without page markers), with a prompt that fixes reading errors only and keeps the document’s spelling, wording and style; its preset keeps iwac-ai-pipelines’ OCR-correction rules, those for newspapers included. The review highlights every change against the original. A scan with no text layer needs Extract text instead.

A text is translated as a task of its own (#167, decision). Translate a text reads what a correction reads (a PDF’s text layer, a text or Word file) and, above all, a result’s text frozen through Use this text in a new job: an extraction, a transcription or a correction as the researcher left it. It sends that text page by page, or in passages, and the answer comes back as the one field of a correction’s, so every model that answers in fields and reads text can translate, cloud, offline or on a server of the researcher’s own, with nothing new asked of providers. The job’s language is the language translated into, one only and always chosen: New job and a workflow’s step ask for it, a workflow with a translation step and no language is not saved, and a job without one is refused before anything is sent. Its preset, Translation for research, translates everything in order, summarising and leaving out nothing; keeps names of people, places and organisations as written; gives the original beside a culturally specific term; marks an unsure reading [word?]; keeps paragraphs, headings and a transcript’s speaker labels and times exactly; adds no notes of its own; and, since the source may be machine-read, translates what is meant where a misreading is obvious and never invents. The translation follows the layout of the text it reads, so it offers no choice of lines. It is a result of its own, never replacing the source, written as <name>.translated.<code> in the formats of a correction; the review shows each page of the source beside its translation (for a PDF, its page or, at a click, the text the model read), which is corrected as any text is, with no differences view between two languages. Its text yields a text: it can be analysed, or read by a later workflow step.

A transcript translated in Kalamu keeps its times. When a transcript whose every part has its times is sent on with Use this text in a new job, its timed lines are kept with the frozen text. The translation sends them as numbered lines, never their times or speakers, and takes an answer only when every line comes back once; an answer that does not is asked for again, and the passage fails with the reason if it never does. Each translated line takes the time and speaker of the line it translates, and the translation is written as SRT and WebVTT in the language translated into. A correction keeps the times while it keeps one paragraph per line; one that joins or splits lines loses them, and subtitles are then refused with the reason rather than written with shifted times. A translation of any other text, or one made before lines were kept, has no times and is offered no subtitles. Economy mode sends these passages at once, not in a batch, since a batch’s answers are not checked line by line.

Choosing and starting a job

Interruptions and resuming

A folder of interviews or a 400-page scan can take hours. Closing the app, a crash, a lost connection, a sleeping laptop or a provider’s rate limit must never mean starting again, or paying twice.

Tips and checks for better results

Many disappointing results come from the input, not the model. The app teaches good practice with short tips where they are relevant, and checks each file before a job starts:

Problem Why it matters Suggested fix
Two pages on one PDF page or image (a spread) Models read straight across both pages, and page numbers no longer match Split each spread into two pages
Low resolution (below about 200 dpi) Small letters, diacritics and handwriting become guesswork Rescan; or continue anyway
Rotated or skewed pages Lines are read in the wrong order or skipped Rotate or straighten automatically
Blurry, dark or low-contrast photos Characters are misread Retake the photo
The same page photographed twice (a retake in a reading room) The page is paid for and reviewed twice, and the blurred take may be the one read Keep the sharper one, or keep both
A blurred photograph, beside the others of the batch or on its own Characters are misread Leave it out and retake it, or keep it
PDF that already contains text Extraction may not be needed Use the existing text, or extract anyway
Very long or very quiet recordings, long silences Transcription drifts or skips quiet speech Even out the volume; recordings are split at pauses
Auto-detect on short or mixed recordings Detection is unreliable on little speech Choose the language(s) explicitly
Several documents in one file, or one document over several files (analyses) An analysis reads each file whole, however many pages, and gives it one set of answers, so keywords and names mix or split One file per document; a tip says so, as it cannot be checked. A file that holds many documents (an issue, an archival file) suits a detailed table of contents
A scan without a text layer (correction, translation) There is no text to correct or translate Extract text instead; the page is reported with that advice

Checks never block a job: users can dismiss a warning. Fixes are applied to working copies, never to the originals, and recorded in provenance.json.

Photographs checked against each other (#216). Once photographs are added to New job, media compares them in the order they will be read (the files’, or the pages’ of the document they make), on the computer and off the interface’s thread; nothing is sent. Each is decoded once, reduced, and let go. Two neighbours that show the same page (the second laid over the first, turned, nearer or shifted a little, in other light) are flagged together, and two pages of one register or printed form, alike in ruling and layout but not in what is written, are not; a photograph is called blurred against the batch’s own sharpness as well as against a floor, and a blank page never is. Under the later photograph of a pair, the file list says “IMG_0142 and IMG_0143 look like the same page”, shows both side by side, whole and close up, names the sharper one, and offers Keep the sharper one and Keep both; a blurred photograph alone is offered Keep it and Leave it out. Leaving a photograph out takes it from this job’s list only (and from the order of the pages), never from the disk, with Undo; nothing is left out without the researcher. Adding photographs checks the batch again; removing one does not. Leaving New job stops a check still running. PDFs and batches with nothing to say show nothing new. Method, thresholds and what they were measured on: decision.

Under the tasks, a short diagram shows how the chosen task splits the work and puts it back together, so that a researcher knows what is sent and what comes back:

Once files are added, it uses them: the first file’s name, pages or length, its pieces (counted by the engine, as for the long-recording check), the chosen model and the prompt’s fields. It plays once (about 2.5 s) when a task is chosen and again on request, never loops, and shows its last frame at rest and under reduced motion. Its steps are a list of plain sentences, so a screen reader reads them in order.

Review view

Checking AI output against the source is what makes results trustworthy, so the review is the heart of the app (see DESIGN.md).

The review opens while a job is still running, so the first pages can be checked before the rest of the folder is processed.

Comparison mode

Which model reads a given archive best is an empirical question. Comparison mode runs the same documents through several set-ups, each a provider, model and prompt or analysis, and shows the results together.

Progress

The user always sees what the app is doing, how far it is, and what it costs (the job’s own calls over all its runs, not only the current one, answers billed but refused included): a list of jobs with their status, a bar per file and set-up, a live preview of the text as pieces arrive, pause and cancel that keep everything finished, progress on the taskbar or Dock icon, and a notification when a job finishes or needs attention. A job waiting for a batch says how many pieces the provider holds and when they are due.

Projects

A researcher’s material outlives any one job: the same letter is extracted, corrected, analysed, compared. A project keeps it together (decision, #57).

Project dictionary

The names and terms a project’s analyses listed, gathered for the researcher to reconcile (#48).

Every passage of a project’s documents that holds some words, found without opening each document and opened where it stands (decision, second delivery, #86).

Search by meaning and the map

Beside the search by words, which stays the default, a project can be searched by what a passage means and its documents laid out on a map, from numbers a model works out from the text (decision, #86). No answer, summary or chat.

Export formats

Results are stored once and exported to several formats at the same time; the default selection is remembered per task. Details are in formats.md.

Task Formats
Text extraction .txt, .md, .docx, .json, .xlsx, .csv; a searchable PDF (invisible text layer over the original, from PDF sources) and ALTO XML (each block, line and word with its place) only from models that report where text sits on the page: Tesseract, word by word, and Mistral OCR and LightOnOCR-3, by block (in ALTO their lines and words are then estimated); a corrected page keeps its words’ places; PAGE XML (one file per page, the same places) from the same models
Transcription .txt, .md, .docx, .json (segments with speakers and timestamps), .srt, .vtt, .xlsx, .csv
Analysis .txt, .md, .docx, .json (answers by field, with reasons), .xlsx and .csv (one row per document, one column per field; for records one row per entry); later a column added to an existing .xlsx
Detailed table of contents .md and .docx (a heading per entry), .xlsx and .csv (one row per entry, a column per field), .txt, .json; its items’ pages as one PDF each, with a list of them as .xlsx, .csv and .json
Correction As text extraction, without the searchable PDF or ALTO XML
Translation As a correction, and SRT and WebVTT for a transcript translated with its times

Tables: a workbook for Excel, CSV for other tools. Every table Kalamu writes (a job’s results, a table of contents’ items, the project’s descriptions and export profiles, the review manifest, the dictionary’s forms) is offered as an Excel workbook (.xlsx) and as CSV. The workbook opens by double-click in Excel, LibreOffice or Numbers set to any language: one sheet, the headings in bold on a row that stays in view, columns as wide as their text within a bound, long text wrapped. Every cell is text exactly as written, never read as a number, a date or a formula, so a telephone number, a date as the source gives it or a formula quoted on a page stay as they are and need no guarding apostrophe; a cell longer than Excel’s 32,767 characters is cut and says so. The CSV stays as it was (commas, UTF-8 with a byte-order mark, a guarding apostrophe before what a spreadsheet would compute) for R, Python and other tools. New job says which to pick (“for Excel”, “for other tools”); a table of contents and records tick the workbook by default. The same table gives the same workbook, byte for byte (decision, #209).

Prompts and analyses

Keeping models current

Offline mode

Offline results are a fallback, not the default for difficult material: the app says which engine produced a result and records it like any other.

A server of the researcher’s own

Universities and computing centres run models for their members, usually behind an OpenAI-style address, and some researchers may send their material only there; others run Ollama on a stronger computer in the office (#283, decision). Such a server is added in Settings › Other servers, the only place the feature shows until one is added, by a name of the researcher’s choosing and an address, with a key only when the server asks for one. Nothing else is described by hand. Once added, the server is a provider like the others in New job, workflows and every dialog, under its name, usable at once without a restart.

Privacy

In offline mode, nothing leaves the computer, nor with a server of the researcher’s own at an address of this computer. With a cloud provider, files go directly from the computer to that provider; there is no intermediate server. With a server of the researcher’s own on the network, they go directly to the address the researcher gave: Kalamu knows only that address, and what the machine there does with the files is under its owner’s rules. For a YouTube video only its link is sent, and Google reads the video from YouTube; the app also asks YouTube for the video’s title when the link is added, and loads YouTube’s player in the review only when the video is played. API keys stay in the system’s keychain: Credential Manager on Windows, the Keychain on macOS. The developer receives no files, keys, results or telemetry. A project saved to a file holds the documents’ text, the researcher’s corrections and, if chosen, the original files, and never a key: it leaves the computer only when the researcher moves or sends it.

Before the first job, workflow run or dictionary proposal sent to a cloud provider, the app asks once for that provider: it names it, says what is sent (the pages, recordings or text, with any personal information they hold), that it goes under the researcher’s own account and the provider’s terms, and links the privacy policy. For a server of the researcher’s own on the network, it names the server and its host and says that the files go to a machine someone runs, under that person’s rules; changing the server’s address, or removing the server, withdraws the agreement. Nothing is sent until the researcher agrees, which the settings keep; the shell refuses work for a provider not agreed to, so no path skips the question: a job created, started, resumed or retried, a workflow run started or a step approved (for the steps it may start), a dictionary proposal, a passage or a region asked. A job resumed after its server’s address changed, or made by an older version or brought in a project file, is asked about as a new one is. Offline engines, and servers at an address of this computer, are never asked about. Apple’s Guideline 5.1.2(i) asks for this in the Mac App Store; it applies on Windows too (decision).

Sending research material to an AI provider, or to a server someone else runs, is still a transfer of data to a third party. Researchers remain responsible for consent, confidentiality, copyright and any approval their institution requires, and should prefer paid API tiers whose terms exclude training on inputs.

What each task accepts

Which kinds of file a task reads, which models can do it and which formats it writes are the engine’s rules, given to the interface so New job offers only what will run, and checked again when a job is created: a source the task does not read, or a model that does not do the task or cannot read a YouTube link, is refused with a plain message, and formats the task does not write (from a pipeline saved for another task) are left out, as are a searchable PDF and ALTO XML when no model of the job reports where text sits on the page. A model of a server of the researcher’s own does only what its trial showed, through the same rules. Where line breaks, samples and pages per call apply, which models are the app’s and each provider’s choice, and what a job will cost at each pace are the engine’s to say too; the interface only shows them.

AI output is not ground truth

Transcriptions, extracted text and analyses can be fluent and wrong: misheard names, skipped passages, invented words, a tone misjudged. Check a sample against the source before relying on the results, and keep the originals.

Glossary

Many researchers meet these tools for the first time. A glossary beside Settings explains the words the app uses, from OCR and tokens to ground truth, error rates and hallucination, in plain language, and what each export format suits. A small help mark beside the headings that use a word (pipelines, workflows, the model and prompt, speed and price, the estimate, formats, the files written, the errors found in review) opens the glossary on it. Like all interface text, it is written in the translation files.

The guide (docs/guide/, published on GitHub Pages) is opened in the system’s browser from the top of the glossary, from Settings › About and from the first launch’s welcome, in the interface language when the guide is written in it. Kalamu opens on Settings only while no key is saved and nothing that runs a job is installed offline; that first launch shows a short welcome above the tabs offering the two ways to start, each opening its tab, and it goes by itself once either is done. Otherwise Kalamu opens on New job.

Bundled conversion tools

Providers accept different inputs, so the app prepares each file for the chosen model; users never convert anything themselves. What a model is sent is what both its provider and its own catalogue entry accept: a text-only model behind a provider that takes PDFs and images is sent text alone, and a scan has its text extracted first. The tools ship inside the app for Windows (x64 and ARM64) and macOS (Apple Silicon).

Licences matter for an MIT app in the Store. hayro is MIT or Apache 2.0; Tesseract (Apache 2.0) and Leptonica (BSD-2-Clause) are compiled into the app, their licences in the third-party notices, and Tesseract’s language data is Apache 2.0. llama.cpp (MIT) is our own build of its multimodal program, shipped beside the app with its licence (on Windows also its Vulkan build, with Vulkan’s headers, MIT, compiled in, and on Windows ARM64 its OpenCL build, with Khronos’s OpenCL headers, Apache 2.0; the loaders come with the graphics driver); LightOnOCR-3 (Apache 2.0) and GLM-OCR (MIT) are downloaded at the researcher’s request. FFmpeg is our own audio-only build, LGPL v2.1 or later, run as separate programs rather than linked; its source is published with each release, and the Store listing carries our own licence terms because Microsoft’s standard terms forbid the reverse engineering the LGPL must allow. Details are in ffmpeg.md and store-license-terms.md.

Technology

The crate layout, modularity rules and architecture reviews are in AGENTS.md.

Distribution

The Microsoft Store, from version 1.0.0: Store packages are signed, install without a security warning and update themselves, which matters for colleagues who are not comfortable installing software. The MSIX package (x64 and ARM64 in one bundle) carries FFmpeg and every licence, declares network access and no microphone, and keeps keys in Credential Manager; the privacy policy is published with the listing, and every installation lists its third-party components with their licences. Unsigned installers are also attached to GitHub releases. The submission, the policies it must meet, the package and the listing text are in microsoft-store.md, packaging-msix.md, store-listing.md and privacy.md.

On macOS (Apple Silicon, macOS 14 and later), a disk image attached to each GitHub release, with FFmpeg and every licence inside. From 1.4.0 it is signed with an Apple Developer ID and notarised, so Gatekeeper opens it without a detour through System Settings (decision). Keys are kept in the Keychain. A Mac App Store build of the same code is being prepared: it runs in the App Sandbox, keeps the folders and files the researcher grants as security-scoped bookmarks, asks for a source’s folder before writing results beside it, and has no support link (feasibility, build). Its first submission is version 1.4.1; the setup at Apple, the answers in App Store Connect and the steps are in mac-app-store.md.