Configuration#
AI Teaching Assistant uses three configuration layers:
Launcher environment variables from
.envService YAML config files (
audio-analyzer,text-to-speech,rag-service)Per-session runtime parameters from UI requests
This guide documents where to change each type.
1) .env (Launcher-Level)#
File:
Loaded by:
Typical variables:
Variable |
Purpose |
|---|---|
|
|
|
|
|
|
|
|
|
Default sample rate |
|
Chunk duration |
|
Silence timeout |
|
Max session length |
|
Speech detection threshold |
|
RAG LLM backend ( |
|
Ordering agent (disabled for teaching) |
|
Face/voice identity (disabled for teaching) |
|
Queue service (disabled for teaching) |
|
Speaker diarization (disabled for teaching) |
After .env changes, restart services.
2) Service YAML Files#
audio-analyzer#
Active runtime file:
text-to-speech#
Active runtime file:
rag-service#
Active runtime file:
Key model fields in rag-service/config.yaml:
models.llm.hf_idmodels.embedding.hf_idretrieval.reranker.hf_idper-model
deviceandweight_format
3) UI Runtime Parameters#
The React UI sends stream session options through
POST /api/v1/sessions/start-stream:
sample_ratechunk_secondssilence_timeout_secondsmax_session_secondssilence_threshold
Defaults are defined in:
UI Proxy Configuration#
The ai-teaching-assistant ui reverse-proxy routes are configured in:
Proxy env vars:
KIOSK_UI_KIOSK_CORE_URLKIOSK_UI_RAG_URLKIOSK_UI_TTS_URLKIOSK_UI_ANALYZER_URL
Recommended Change Workflow#
Edit one config surface at a time (
.env, YAML, or UI defaults).Restart only impacted services.
Verify health endpoints.
Run one upload + voice query validation.
Validation Commands#
curl http://127.0.0.1:8010/health
curl http://127.0.0.1:8011/health
curl http://127.0.0.1:8020/health
curl http://127.0.0.1:8012/health
curl http://127.0.0.1:7860/healthz