Skip to content

About

Experimental desktop app for the GAIK Toolkit: extract, parse, classify and transcribe local files with your own model key

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GAIK Desktop (experimental)

Check

A desktop app for the GAIK Toolkit. Drop files or a whole folder, and the toolkit runs on your own computer:

  • Extract data: describe the fields in your own words, get one row per file, export to Excel, CSV or JSON. Repeated groups such as invoice lines become their own sheet.
  • Parse to text: PDF and Word to text without a model; scans and images through your model. Save all writes one file per document into a folder.
  • Classify: give your classes, get a class, a confidence and a reason per file.
  • Transcribe: audio and video to text, with an optional correction pass.

GAIK Desktop extracting invoice fields from five files: open the 50-second demo video

A 50-second demo (docs/demo.mp4): real model calls on made-up sample documents, with the waits for the model shortened. No sound.

Files are read where they are. Nothing is uploaded to a GAIK server: only the text or page images of a document go to the model provider you configure (Azure OpenAI or OpenAI), with your own key. Finished runs are kept in a local history.

This is an experiment, not a supported product: there is no signed installer and no auto-update, and it has been tried on Windows 11 only.

install (Windows)

Download GAIK-Desktop-Setup-<version>.exe from the latest release and run it. Nothing else needs to be installed first.

  • The installer is not code-signed, so Windows SmartScreen shows "Windows protected your PC". Choose More info, then Run anyway.
  • The first start downloads Python and the GAIK toolkit (about 120 MB, 350 MB once installed) into the app's data folder and needs an internet connection; later starts take a few seconds. Nothing is added to PATH or the registry.
  • The app opens on Get started: it shows the engine installing, asks for your model key, and offers three sample invoices to try.
  • Uninstalling removes the app and its engine. Your settings and history stay in the app's data folder for a later install.

Parsing documents that have a text layer works without a key.

run it from source

Needs bun and uv.

bun install
bun start

bun run pack builds an unpacked app into release/, bun run dist the installer for the current platform. Both copy the uv on your machine into the package. Pushing a tag such as v0.1.0 builds the Windows installer in GitHub Actions and attaches it to a release.

how it works

Electron main process (src/)      window, settings, file pickers, engine lifecycle
 ├─ renderer (renderer/)          React + Tailwind, no Node access, talks through a preload bridge
 └─ engine (sidecar/server.py)    FastAPI over gaik, 127.0.0.1 on a free port, per-run token
  • The engine runs gaik 0.12.0 with CPU-only extras (no torch). Requests name files by path, so documents are never copied.
  • The engine is uv's own Python plus a folder of packages, not a virtual environment: a virtual environment's python.exe is a launcher generated on each computer, and managed Windows computers refuse to run such unsigned launchers.
  • Model keys are encrypted with the operating system's secure storage (Electron safeStorage) and handed to the engine as environment variables. The settings page never receives a saved key back, and the log hides it. Model variables already set in your own environment are not used.
  • Other environment variables in Settings accepts any KEY=VALUE that gaik reads, for example LLM_PROVIDER=aitta with AITTA_API_KEY for CSC Aitta.

limits

  • Transcription needs an OpenAI or Azure OpenAI speech-to-text deployment (gpt-4o-transcribe by default); long recordings also need ffmpeg on your PATH.
  • A description is turned into a field list by the toolkit's SchemaGenerator, and the same description can come back with fewer fields (in testing, one run in four dropped line-item fields). The app shows the fields before any file is read; use Regenerate when one is missing, and Save field list to reuse a good list exactly as it is.
  • macOS and Linux builds are untested.

development

bun run check

runs the syntax checks, the unit tests of the settings and file logic, and the type check. The engine has its own tests, run with the engine's Python (the packages in sidecar/requirements.txt plus pytest):

python -m pytest sidecar/test_offline.py -q

needs no model key and makes no network calls; CI runs it on every push.

python sidecar/smoke_live.py

makes real model calls and needs your provider variables in the environment. GAIK_DESKTOP_USE_ENV=1 bun start makes the engine use the model variables of the shell instead of the settings page.

GAIK_DESKTOP_RECORD_DIR=<folder> renders the window offscreen and writes every painted frame to that folder, for demo recordings that do not depend on the desktop being visible; drive the app over --remote-debugging-port.

license

MIT, like the GAIK Toolkit.

About

Experimental desktop app for the GAIK Toolkit: extract, parse, classify and transcribe local files with your own model key

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages