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
| Concept | Meaning |
|---|---|
| Provider | base URL + protocol (deepseek / anthropic / OpenAI-compatible) + an encrypted key |
| Capability route | one provider and model per capability (fast chat, strong chat, ASR, TTS, vision, OCR, search) |
| Service override | a session can pin chatService to a specific model |
| Fallback | a 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 writesifg-embed.json(including pooling). - Reindex runs as a background job in a worker thread; progress is visible and the main thread stays free.
| Model | Dims | Size | When |
|---|---|---|---|
| bge-small-zh-v1.5 (default) | 512 | ≈25 MB | everyday retrieval; limited on hard paraphrases |
| bge-base-zh-v1.5 (optional) | 768 | ≈110 MB | better 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
| Category | Default | Content |
|---|---|---|
| Full call payloads | 90 days | prompts, outputs, thinking (lineage.db) |
| Debug events | 90 days | audience=debug |
| Topic snapshots | forever | heatmap and profile reconstruction |
| Web snapshots | forever | fetched text (title, URL, hash kept) |
| Recordings | 30 days | local files |
| Exports | 30 days | background exports |
| Sessions | off | completed sessions older than N days; locked and running sessions are never touched |
Cleanup happens two ways:
- Daily job applies the policy (
retention.daily). - 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 INTOsnapshot (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
| Panel | What you can do |
|---|---|
| Overview | profile count, session count, storage (shows — when disk capacity is unknown, never NaN) |
| Jobs | trigger retention/inbox jobs, inspect recent runs |
| Runtime probes | live checks for databases, models, embeddings, providers |
| Usage & budget | per-profile spend, cap, exceeded state |
| Audit | setting changes, model activation, job runs |