AI Kernel
The AI Kernel is the core processing engine that orchestrates the full pipeline from query to response.
What the AI Kernel Does
The AI Kernel coordinates all processing steps for each query:
- Routing — Determines which LLM handles the query, using routing rules or Smart Routing
- Workflows — Executes multi-model workflows when a routing rule references a workflow
- Quality Scoring — Computes faithfulness, answer relevance, and context relevance scores for each response
- Fact Extraction — Extracts atomic facts from responses and stores them in the Context Engine
- Webhook Dispatch — Fires event-driven webhooks when configured
How It Works
When a query arrives, the AI Kernel:
- Checks the semantic cache for a match
- Evaluates restriction rules and guardrails
- Selects the target model via routing rules or Smart Routing
- Applies context compression if enabled
- Sends the query to the LLM provider
- Receives the response
- Scores the response quality
- Extracts and stores atomic facts
- Logs the full pipeline to the query log
- Fires webhooks for subscribed events
The AI Kernel handles all of this transparently — users and agents simply send a request and receive a response.