Skip to content

Settings & Admin ​

Settings has six tabs that do not overlap — general / models / voice / extensions / retention / data — plus a separate admin console. This page is organised by why you would open them.

The configuration surface ​

Figure 1 · Profile-scoped settings versus system-scoped settings

Providers and routing ​

ConceptMeaning
Providerbase URL + protocol (deepseek / anthropic / OpenAI-compatible) + an encrypted key
Capability routeone provider and model per capability (fast chat, strong chat, ASR, TTS, vision, OCR, search)
Service overridea session can pin chatService to a specific model
Fallbacka provider that fails before emitting any token falls back to the local mock, recorded as provider.fallback

Fallback is never silent

Once tokens have streamed, the system does not fall back — that would append mock text after a real answer. A mid-stream failure says exactly how many characters arrived and that the question was not scored.

Models ​

  • Download source: Hugging Face or a mirror — a real setting, applied at install time.
  • Local models live in ~/.interviewforge/models/<id>/; enabling writes ifg-embed.json (including pooling).
  • Reindex runs as a background job in a worker thread; progress is visible and the main thread stays free.
ModelDimsSizeWhen
bge-small-zh-v1.5 (default)512≈25 MBeveryday retrieval; limited on hard paraphrases
bge-base-zh-v1.5 (optional)768≈110 MBbetter semantics, ~6x the reindex cost

Changing the model requires a rebuild, and the UI reports mismatch until then — same width with a different pooling counts as stale, which a width check cannot see.

Voice ​

  • ASR: DeepSeek /v1/tools/asr (audio leaves the machine); off means keyboard only.
  • TTS: synthesises only when you press read-aloud; leaving the room stops playback and revokes blob URLs.
  • Recordings: stored locally, cleaned by retention (30 days by default), deleted with the session.

Retention ​

CategoryDefaultContent
Full call payloads90 daysprompts, outputs, thinking (lineage.db)
Debug events90 daysaudience=debug
Topic snapshotsforeverheatmap and profile reconstruction
Web snapshotsforeverfetched text (title, URL, hash kept)
Recordings30 dayslocal files
Exports30 daysbackground exports
Sessionsoffcompleted sessions older than N days; locked and running sessions are never touched

Cleanup happens two ways:

  1. Daily job applies the policy (retention.daily).
  2. Manual cleanup previews first: the dialog lists candidate titles, dates, scores and estimated size, plus locked/running counts. The confirmed number must match the preview, otherwise the server returns 409 plan_changed — a dialog left open while a session completed must not delete a different set.

Data ​

  • Export: whole-database tarball via a VACUUM INTO snapshot (consistent without a WAL checkpoint), streamed rather than buffered.
  • Restore: schema version and integrity are checked before anything moves, then the directory is swapped atomically with rollback. The CLI refuses to overwrite while a Host holds the databases open.
  • Reindex and cleanup as described above.

Device tokens ​

Profile tokens are paginated and revocable:

  • Pagination is not cosmetic — shipping every device token to the client widens the token surface to every page that renders it.
  • Revocation takes effect immediately (validated per request, not cached).

Admin console ​

PanelWhat you can do
Overviewprofile count, session count, storage (shows — when disk capacity is unknown, never NaN)
Jobstrigger retention/inbox jobs, inspect recent runs
Runtime probeslive checks for databases, models, embeddings, providers
Usage & budgetper-profile spend, cap, exceeded state
Auditsetting changes, model activation, job runs

Next ​

Local-first · inference egresses on demand · fully traceable