Page content

AI & Clouds10 min read

LLM Observability in Practice: 4 Questions from a Client, and Our Answers

Krzysztof PytelUpdated November 5, 2026

LLM observability is what turns "the AI gave a strange answer" into "this user, with these permissions, got this answer from these three document versions, and here is what it cost". We learned how much clients care about that distinction from one short email.

Some time in October 2026, two of our engineers and a project manager showed a large IT services company how we use AI in software maintenance. We demoed two tools we already run in production. The first was a service assistant that lives in a team's Slack, and the second was a documentation assistant that scans a product's code, Jira tickets and docs every night.

The demo went well. Then, the client came back with these four questions we think are worth sharing:

  • Permissions

Can the model answer only from the documents a given user is allowed to see? A manager and an employee should get different answers to the same question.

2. Auditability

Can we check afterwards which documents a user could see, and which ones were used as sources for an answer?

3. Versioning

How do we version and update the data in a RAG system? A new device or procedure should be suggested in a repair, even though older tickets were handled differently.

4. Training

Did any of our deployments fine-tune the model or "weight" results in RAG?

What was the client really asking?

Under the four questions we felt a worry. Once an AI assistant answers from company knowledge, nobody can prove afterwards why it said what it said. So this is an LLM audit trail problem first and a model problem second.

Here is how each question maps to what the system has to record:

Client's question

The problem underneath

What the system must record

Can answers respect user permissions?

Data leaking across roles through retrieval

The user's groups or roles at query time, and which retrieval filter was applied

Can we audit sources afterwards?

No evidence of what fed an answer

Prompt, retrieved chunk IDs, model, prompt version and the final answer, per request

How do you version RAG data?

Old answers can't be reproduced once documents change

The document version behind every chunk, and the query history

Did you fine-tune or weight results?

Answer quality with no way to measure it

Confidence score, retrieval scores and user feedback, linked to the trace

The right column is a definition of LLM observability and monitoring in practice: tracing, scoring and keeping enough history to answer questions you haven't been asked yet.

Why LLM observability is not just monitoring

Classic application monitoring tells you a request succeeded and took 800 ms. It cannot tell you that the answer was wrong, came from an outdated manual, or quoted a document the user should never have seen. LLM observability adds those layers - what went into the model, what came out, whether it was grounded, and what it cost.

Most companies are not there yet. MCP Manager's 2026 report on AI agent governance cites Cisco's AI Readiness Index: 83% of companies intend to deploy agentic AI, yet only 24% have the operational controls to run it, monitoring and guardrails included. Observability is the first of those controls.

LLM observability by the numbers

The stakes rose in 2026. These are the figures from our own research archive that shaped our answer:

Figure

What it means

Source

83% vs 24%

Share of companies planning agentic AI vs share with controls in place

Cisco AI Readiness Index, via MCP Manager

6 months

Minimum log retention for providers and deployers of high-risk AI systems (EU AI Act, Articles 19 and 26)

Regulation (EU) 2024/1689

2 Aug 2026

Transparency duties (Article 50) apply: users must know they are talking to AI

Cloud Security Alliance

2 Dec 2027

Annex III high-risk obligations, including automatic logging (Article 12), apply after the Digital Omnibus

Regulation (EU) 2026/1744, in force 27 Jul 2026

2 Aug 2028

High-risk obligations for AI built into regulated products (Annex I) apply

Regulation (EU) 2026/1744

Development

Status of the OpenTelemetry GenAI semantic conventions in Sep 2026, so tracing "follows" them rather than being certified

Dash0

Jan 2026

Langfuse joined ClickHouse; licensing unchanged, self-hosting still first-class

Langfuse

~3,700

Monthly global searches for "llm observability" (1,300 in the US)

Code & Pepper keyword research, 2026

Our answer, question by question

Our short answer was “yes” to all four, but only if observability is designed into the product from day one. Retrofitting it into an existing assistant is possible - and much harder.

1. Permission-aware retrieval

Filtering by permissions belongs in retrieval, not in the prompt. The model should never see a document the user can't open. We gave the client two options:

  • Access lists in the vector store
    Each embedding carries access metadata, and every query is filtered by the user's identity. Our answer? Store group or role IDs. People join and leave teams every week, groups change far less often, so you don't re-index embeddings each time.
  • A permission gateway in front of the LLM
    A separate service knows who can access what, limits the search to permitted sources and passes that context on.

Either way, the trace should record a snapshot of the user's groups at query time. Without it you can show what the answer used, but not what the user was entitled to see. That turned out to matter for question 2.

2. Auditability where tracing is necessary

The detailed logging duties (Article 12, plus the deployer duties in Article 26, including at least six months of log retention) apply to high-risk systems, and their Annex III deadline was deferred to 2 December 2027 by the Digital Omnibus.

An internal service-desk assistant is most likely not one. For it, the AI Act mainly means transparency (people know they are talking to AI) and AI literacy.

A tool is not an audit trail. You also need a retention policy, protection of logs against modification, access control to the logs themselves, and GDPR compliance, because prompts contain personal data. In practice that often means a self-hosted Langfuse implementation in the EU.

The client really asked two things. "Which documents did the answer use?" is answered by the trace, if you log chunk IDs and versions. "Which documents could the user access?" needs the permission snapshot from question 1. A trace on its own doesn't give you that.

Tools like Langfuse are built for exactly this, but the procedures around them are the compliance officer's job as much as the developers'. If treating a system as critical doesn't hurt your budget, treat it as critical.

3. Versioning the knowledge base

This was the hardest of the four. Few teams have solved it in a general way, while the volume of data is the problem. A company can update documents but also has to keep what was there before, or at least the history of queries.

The minimum we recommend looks like this:

  • In 2025 a user asks a question and gets an answer based on source A, version 1.0.
  • In 2026 the same question returns an answer based on source A, version 2.0.
  • An auditor picks the 2025 query and can open source A as it was in version 1.0, not today's 2.0.

If you can store that, you can reproduce any past answer. That is what knowledge base versioning means in an audit, and it covers the client's repair case too: the new device appears in new answers, while old tickets still show what was known at the time.

4. Fine-tuning vs. measurable quality

Companies rarely fine-tune in RAG systems, because the underlying data changes too often and a tuned model goes stale. In our view, quality improves faster through three things that can be observed:

  • Confidence score
    Our documentation assistant shows how well the retrieved fragments match, for example 78% or 94%. Below a threshold it answers "no data" instead of guessing.
  • Hybrid search
    Keyword and semantic retrieval combined, with retrieval scores logged in the trace.
  • Human feedback loop
    Users and support staff rate answers, and each rating is linked to the trace that produced it.

All three are signals in the observability layer, and we can show you the numbers.

What a Langfuse implementation records for an assistant like this

A Langfuse implementation for a permission-aware RAG assistant might log six things per request, and each one answers a different person's question: the developer's, the auditor's or the CFO's.

Signal

What we log

Who asks about it

Identity and permissions

User ID (pseudonymised), group/role snapshot, retrieval filter applied

Auditor, security

Retrieval

Query, rewritten query, chunk IDs, document versions, retrieval scores

Developer, auditor

Generation

Model, prompt version, input and output, refusals

Developer

Quality

Confidence score, "no data" answers, LLM-as-a-judge or human scores, user feedback

Product owner

Cost and latency

Tokens, cost per answer, time to first token, total latency

CFO, engineering lead

Actions

Tool calls (e.g. creating a Jira ticket), arguments, results, who approved

Auditor, team lead

Around the tool we set up what makes the trace usable as evidence: PII masking before data leaves the application, retention rules, access control to the traces, and hosting in the EU when the data requires it.

Self-hosted Langfuse runs on ClickHouse, Postgres, Redis and object storage, and it stays open source and self-hostable after joining ClickHouse. We instrument on OpenTelemetry so the traces are not locked to one vendor, following the GenAI semantic conventions, which are still at Development status.

So the trace store is only evidence if the controls in the bottom band are in place. The four steps above it are what a developer sees when debugging.

What we learned from one email

We got a sharper view of what "production-ready AI" means to an enterprise buyer. The two tools from the demo already follow most of it. There are five lessons we now bring to every AI project, thanks to that request.

  • Plan observability before the first prompt. Permissions, versions and retention are cheap to design in and expensive to bolt on.
  • Log groups, not people. Role-based metadata survives reorganisations without re-indexing.
  • Separate "what was used" from "what was allowed". One needs the trace, the other a permission snapshot.
  • A tracing tool is not compliance. Retention, log integrity, access control and GDPR are procedures, and the compliance officer owns them with you.
  • Expect the ground to move. Tools add logging features every month and EU AI Act dates have already moved once. As one of our engineers put it, "it's still the Wild West", so keep the setup vendor-neutral.

FAQ

What is LLM observability?

LLM observability is the practice of tracing, scoring and costing every step of an AI application in production: prompts, retrieval, tool calls, model calls and answers. It lets a team explain why a given answer was produced, from which sources and for whom, and spot quality, latency or cost problems before users report them.

What is the difference between LLM observability and monitoring?

Monitoring tells you whether the system is up and fast. LLM observability and monitoring together also tell you whether the answer was correct, grounded and permitted, which prompt and model produced it, and what it cost. Most teams run both side by side.

Is tracing in Langfuse enough for EU AI Act compliance?

No, not on its own. Tracing records what happened; compliance also needs a retention policy, protection of logs against changes, access control to the logs and GDPR handling of personal data in prompts. The strict logging duties (Articles 12, 19 and 26) apply to high-risk systems, with Annex III obligations from 2 December 2027. We are engineers, not lawyers, so legal sign-off stays with your counsel.

What does a Langfuse implementation include?

A Langfuse implementation covers instrumenting your application, setting up projects, roles and SSO, PII masking, prompt management with versions, evaluation datasets, dashboards and alerts. Self-hosting adds the infrastructure (ClickHouse, Postgres, Redis, object storage), backups and upgrades. A typical engagement takes 4 to 8 weeks.

How can a RAG assistant answer only from documents a user may see?

Filter at retrieval time. Store group or role IDs in the embedding metadata and filter every query by the user's groups, or put a permission gateway in front of the LLM. Log a snapshot of the user's groups with each trace so you can prove it later.

How do you version a RAG knowledge base for audits?

Keep the document version on every chunk and keep the query history. An auditor should be able to open a past query and see the exact version of each source used then, even after the document has been updated.

Do we need fine-tuning to improve answer quality?

Usually not in RAG, because the data changes too often. Confidence scores, hybrid search and a human feedback loop improve quality faster, and all three can be measured in the same observability setup.

Should we self-host Langfuse or use the cloud version?

Langfuse Cloud is the fastest start. Self-hosting in the EU suits teams with personal, health or financial data in prompts, or strict data residency rules. We help you choose during the first audit.