Liya Engine

Feature Configuration

Enable and disable capabilities — RAG, agentic mode, streaming, session memory, and employer features.

featureConfig is the feature flag system for your tenant. It controls which capabilities are active and which intents or actions are accessible.


Schema

{
  "featureConfig": {
    "enable_session_memory": true,
    "enable_embeddings": false,
    "enable_rag": false,
    "enable_streaming": false,
    "enable_employer_features": true,
    "enable_coaching": true,
    "enable_mock_interviews": true,
    "enabled_intents": null,
    "disabled_intents": [],
    "premium_intents": ["mock_interview", "coaching_session", "candidate_prescreen", "candidate_scoring"]
  }
}

Capability flags

enable_session_memory

When true, the engine persists conversation history across turns within a session. Required for multi-turn intents like mock-interview and coaching-session. Default: true.

enable_embeddings

When true, document embeddings are generated and stored. Required prerequisite for enable_rag. Default: false.

enable_rag

When true, retrieval-augmented generation is active — relevant knowledge base chunks are retrieved and injected into the LLM context. Requires enable_embeddings: true. Default: false.

enable_streaming

When true, streaming responses are available via the preferences.stream: true request option. Default: false.

enable_employer_features

When true, employer-facing intents are accessible: candidate_prescreen, candidate_scoring, jd_analysis, knockout_question_generation, interview_question_generation. Default: true.

enable_coaching

Controls access to coaching_session. Default: true.

enable_mock_interviews

Controls access to mock_interview. Default: true.


Intent access control

enabled_intents

Whitelist of intent keys. When set, only these intents are accessible. null means all intents are enabled.

{ "enabled_intents": ["resume_analysis", "job_fit_analysis"] }

disabled_intents

Blacklist of intent keys. Takes precedence over enabled_intents.

{ "disabled_intents": ["general_chat"] }

premium_intents

List of intents that use premium_model in hybrid strategy. Override the defaults here if your use case differs.


Agentic mode

Agentic execution (multi-step tool use) is configured separately via agenticConfig:

{
  "agenticConfig": {
    "enabled": true,
    "mode": "auto",
    "max_steps": 6,
    "timeout_seconds": 60,
    "fallback_on_error": true,
    "fallback_on_timeout": true
  }
}
modeBehaviour
autoEngine decides whether to use agentic execution based on intent complexity (recommended)
alwaysAll requests use agentic mode
neverAgentic mode disabled — single-shot LLM only

On this page