Skip to main content

Setup

Setting Settings.llm globally applies to all LlamaIndex components that use an LLM — query engines, chat engines, agents — without further configuration.

Embeddings

Every embedding call routes through Xenovia independently. Policies and traces apply to both LLM and embedding calls — the full RAG pipeline is governed, not just the generation step.

RAG pipeline

Agentic query engine

Each reasoning step (think, act, observe) is a separate LLM call. All calls route through Xenovia and produce individual traces. Use a consistent X-Xenovia-Session-Id to group the full agent run in Traces.

Session tracking

Pass the same session header into both the LLM and embedding clients so the full workflow stays grouped in Traces:

Handling policy blocks

When a request is blocked, LlamaIndex propagates the upstream 403 as an openai.PermissionDeniedError.