Capturing user feedback as Langfuse scores

Learn how to collect end-user thumbs, ratings and implicit signals as Langfuse scores, attach them to the right traces and route negative feedback into review in self-hosted Langfuse.

On this page

Capturing user feedback as Langfuse scores in self-hosted Langfuse

User feedback is stored in Langfuse as scores attached to traces, so a product team can see whether real users found an LLM answer useful without waiting for judge models or expert reviewers. A thumbs up, a rating or an implicit signal such as a regenerated answer each becomes a score on the trace that produced the answer, and that score can then be filtered, charted and used to route work. Teams usually need this first when a feature is already in front of users and the question is whether quality is improving, before they have built rubrics for LLM-as-a-judge evaluation or staffed human review. The core SDK and API features used for this are part of the MIT-licensed open source version, which the Langfuse LICENSE file on GitHub describes, so the capture pattern does not depend on an Enterprise license key.

Before building anything, the team should decide what a score means and how it links back to the trace. Agree on the score name, the data type (boolean, categorical or numeric) and the value range, and keep these identical across the frontend and any backend that writes scores. Confirm in your own environment which score fields your Langfuse version accepts through the public API and SDKs, and check the current behavior against the Langfuse documentation for your release, since the platform changes between versions. Also confirm how your application returns the trace identifier to the browser, because feedback that cannot be tied to a trace ID is hard to act on later.

Plan for the risks that appear once real users can click. Feedback volume is uneven, so negative scores should be the signal you route into review queues, and positive scores need a sampling decision so they do not swamp reviewers. Free-text comments may contain personal data that then sits in your self-hosted ClickHouse and blob storage, so decide with your privacy team what users may type and whether masking applies before the comment is stored. Finally, ask your implementation partner or internal platform team to test that feedback submitted on slow connections or after a page reload is not lost or attached to the wrong trace.

Feedback capture options and when each fits

This table compares the main ways to capture end-user feedback, what each one measures, where it is biased or noisy, and what your application must store so the score can be attached to the right trace. Read it as a menu: most teams pair one explicit signal with a small set of implicit ones, and the linking data matters as much as the widget.

Capture optionWhat it measuresBias and noiseWhat to store to link it to a trace
Thumbs up or downA fast binary judgment on whether one response was acceptable to the userLow response rate; users mostly act when something went wrong, so negatives are over-representedTrace ID or observation ID of the response, user or session ID, score name, timestamp
Star ratingsDegree of satisfaction on a multi-point scaleScale interpretation differs between users; middle values are often avoided, and ratings cluster at the endsTrace ID, rating value, score config name so every rating uses the same scale
Free-text commentsSpecific reasons for a good or bad response, often the most useful input for prompt fixesSparse and skewed toward strong opinions; may contain personal data that needs masking or deletionTrace ID, comment text kept as a comment or string score, and the handling rule for sensitive content
Regeneration or retryA signal that the user rejected the first answer and asked againCan mean dissatisfaction, curiosity or a changed question; needs context to interpretOriginal trace ID, the new trace ID, a link between them, and the event type
Copy or accept actionThat the user took the output forward into their workPositive signal only when acceptance is the goal; users may copy to check and then discardTrace ID, action type, and the session ID so the action can be counted per response
Dwell time or abandonmentHow long the user engaged with the answer, or whether they left before finishingHard to separate reading time from distraction; short sessions are not always failuresSession ID, start and end timestamps, trace ID of the last response shown
Escalation to a humanThat the user needed help outside the assistant, which often signals a failed answerDepends on support routing; escalations can have causes unrelated to model qualityTrace or session ID, escalation reason code, and the ticket reference if one exists

Setting up feedback capture in your Langfuse instance

This sequence connects end-user feedback in your application to scores on the correct traces in your self-hosted Langfuse, so negative feedback can be filtered and routed to review. Each step ends with a check that confirms the piece works before the next one is built.

  1. Return trace IDs to the frontend

    Your application backend creates a trace for each LLM response and returns its trace ID alongside the response payload, so the frontend holds a reference it can send back with feedback. The application team owns this change, and the check is that the trace ID shown in the browser network response matches a trace visible in the self-hosted Langfuse UI for the same request. If the SDK or OpenTelemetry instrumentation returns a different identifier than the one stored in your application, fix the mapping now, because every later step depends on it.

  2. Define score configs for thumbs and ratings

    Create a score config in the Langfuse project for each feedback type, such as a boolean config for thumbs up or down and a numeric or categorical config for a rating scale, with the allowed range and labels written down. Your product and analytics owners agree on the meaning of each value before anyone writes code against it. The check is that both configs appear in the project settings with the expected data type, and that a test score submitted through the UI is accepted with the chosen value.

  3. Send scores from a backend endpoint

    Build a small backend endpoint that accepts the trace ID and feedback value from the frontend, validates them against the score config, and writes the score to Langfuse using a server-side project key that never reaches the browser. Keeping credentials out of the client also lets you reject malformed or abusive submissions before they reach your observability data. The check is that a feedback click in the application produces exactly one score record on the trace, and that an invalid value is rejected by your endpoint without creating a score.

  4. Verify scores attach to the right trace

    Open a few traces in the self-hosted Langfuse UI that received feedback and confirm that each score sits on the trace or observation it was sent for, not on a neighboring request, a session or a different project. Run this check for several users and for requests that were retried or streamed, since those are the cases where IDs are most often mismatched. Record the result in your test notes, and do not move on until every sampled score lands on its matching trace.

  5. Confirm negative feedback filters work

    Filter traces in the Langfuse UI by the thumbs-down value and by a low rating, then check that the results contain only the traces whose feedback matches the filter. Repeat the filter with the score name and the value together, and compare the count against the scores your test sent. The check is that the filtered list matches your expected test set exactly, which confirms the data is ready for the review routing that follows.

  6. Route negative feedback into review

    Use the filtered negative feedback as the entry point for review, either by adding these traces to an annotation queue or by setting up your own triage process that reads the same scores. Agree with reviewers which feedback values count for review and how often the queue is worked, so the process is owned by a named team. The check is that a thumbs-down test trace appears in the review queue or triage list for the reviewer, with its feedback value visible.

How a thumbs-down reaches the review queue

The flow starts when an end user clicks a thumbs-down in the browser, which sits on the untrusted side of the boundary. The frontend sends the feedback to the application backend, which holds the Langfuse credentials and attaches the score to the trace ID the request was made under. The backend then calls the self-hosted Langfuse API, where the Worker processes ingestion into ClickHouse, so the score appears against the trace. Check that the browser never holds a Langfuse secret key, and that the trace ID travels with the feedback from the original response.

Thumbs-down feedback path from browser to a reviewer's queue in self-hosted Langfuse.

Routing negative feedback into review queues

When negative feedback arrives at a few items a day, a filtered trace view is often enough. Someone on the product or engineering team opens Langfuse, filters traces by the feedback score, and reads the input, output and surrounding session before deciding what to change. Nothing is assigned or tracked beyond that, which keeps setup light but puts the review habit entirely on whoever remembers to check.

  • Saved filter on the score: Filter traces where the user feedback score is negative, and save the view so the same query is one click away.
  • Time window: Review the last day or week on a fixed cadence, so items do not age out unseen.
  • Session context: Open the session to see the turns before and after the rated response, since a thumbs-down often depends on the prior question.
  • Fix log: Record each finding in your own tracker with a link to the trace, because the filtered view does not keep a record of what was decided.
  • Owner by name: Name one person responsible for the weekly pass, so the view does not become a dashboard nobody opens.

Before relying on this tab, confirm with your team how many negative items arrive per week, and whether the saved filter reliably captures the score names you use in your frontend.

Privacy and access risks in user feedback data

Feedback looks harmless because a thumbs-up carries no personal data, but the comment attached to it and the trace behind it often do. The cards below cover what ends up stored, who can read it, and which controls depend on your deployment choices and license.

Free-text comments carry personal data

A user who types a complaint into a feedback box often includes a name, account number, email address or medical detail. When the comment is saved as a score, it sits next to the trace it refers to, so the personal data is now in two places. Before launch, sample real comments from a staging feed and confirm which fields you store as free text. Limit comment length and decide whether comments are stored at all for low-risk features.

Traces already hold the prompt

A feedback score is only useful with the trace it judges, and that trace contains the full user prompt, retrieved documents and model output. Feedback capture therefore adds no new data class, but it makes these traces easier to find and review. Confirm which inputs your application already sends to Langfuse, and whether they should be masked before ingestion rather than after.

Mask data before it leaves the application

Masking at the point of capture keeps personal data out of ClickHouse, backups and exports from the start. Server-side data masking in self-hosted Langfuse requires an Enterprise license key, so if you rely on it, confirm the license before design work begins. Without that key, plan masking in your application code and test it with known sample values that must not appear in stored traces.

License key docs

Who can view scores and comments

Scores and comments are visible to anyone with read access to the project that holds them, and feedback reviewers often need broader access than engineers. Project-level RBAC roles that limit who sees traces, scores and annotation queues also require an Enterprise license key. Map which teams need comment access, decide whether support staff should see raw user text, and document the answer before creating reviewer accounts.

Keep feedback data in your infrastructure

Self-hosting places Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and blob storage inside your cloud account, data center or private network, so feedback data does not pass through a vendor-operated service. This is a property of the architecture, not a compliance outcome. Confirm where each store lives, which regions your backups replicate to, and which network paths allow the feedback widget to reach the ingestion API.

Self-hosting docs

Retention decides how long comments live

Feedback comments accumulate quietly, and a score retained for years can outlive the consent or purpose under which it was collected. Data retention policies that delete old traces and scores are an Enterprise feature in self-hosted Langfuse. Without them, you need a documented deletion procedure and a tested way to remove a user's comments from ClickHouse and backups. Ask your team to define a retention period for each feedback type before go-live.

Questions teams ask before building feedback capture

What does it cost in effort to capture user feedback as Langfuse scores?

The build has four cost components: frontend work to render thumbs or ratings and send them, a backend endpoint that validates feedback and writes the score, trace ID plumbing so each score attaches to the right trace, and a review process that routes negative feedback to people who act on it. Frontend and backend work are one-time build effort, while the review queue carries recurring reviewer time. The main cost drivers are how many surfaces collect feedback, whether implicit signals such as regenerations or copy events are included, and how many reviewers work the queue. Ask any quote to itemize these four components separately, so you can see which parts your team could absorb.

How long does a feedback capture build take?

Duration depends on scope rather than on a fixed figure, and no timeline is supplied for this work. A single thumbs control on one application with an existing trace ID is a small change. Several applications, implicit signals, and a review workflow with routing rules add frontend, backend and process work that runs in parallel only if the teams are available. Agree the scope in writing first, since most engagements are fixed-scope with deliverables and timelines set before work starts. Ask for the timeline to be tied to named deliverables such as the endpoint, the frontend component and the queue configuration.

What does our team need to provide before the build starts?

Three things carry most of the setup. First, access to the frontend codebase and the backend services that will write scores, including test environments. Second, a trace ID strategy: the feedback control must know which trace or observation it belongs to, so the application has to return the trace ID with each response and keep it available on the client. Third, a privacy review of what feedback text and session context may be stored, since free-text comments can contain personal data that lands in traces. Your compliance team should approve that data scope before the feedback fields go live.

Can an in-house team build feedback capture without a partner?

Yes, if the team has frontend and backend engineers who can call the Langfuse API and already own the application's response path. The work is not exotic, but the trace ID plumbing crosses frontend, backend and any gateway in front of the model, which is where in-house builds usually slow down. A partner adds value when several products need the same pattern, when the review process needs design alongside the code, or when the team lacks capacity. Whichever path you choose, decide who owns the score configuration and who reviews negative feedback, because those decisions outlast the build.

Does the MIT-licensed Langfuse cover user feedback scores?

Langfuse states that all core features and APIs are available in the MIT-licensed open source version without limits, and self-hosted deployments use the same codebase as Langfuse Cloud. Scores and the annotation features described in this topic are part of that core. The Enterprise license key is needed only for the features listed in Langfuse's license key documentation, such as project-level RBAC roles, protected prompt labels, data retention policies, audit logs and server-side data masking. If your review process depends on any of those, confirm the license requirement in the license key documentation before you commit to a design.

What breaks most often in feedback capture after launch?

The most common failure is a score that arrives without a usable trace ID, so feedback exists but cannot be tied to the response a user rated. Other failures are duplicate submissions from repeated clicks, negative feedback that nobody reviews because the queue has no owner, and free-text comments that expose personal data. Check each of these during testing: send feedback for a known trace, confirm the score appears on that trace, confirm a negative score enters the review queue, and confirm the stored text follows your retention rules. Langfuse's own operations guidance covers ingestion problems if scores stop appearing.

Who is responsible for the feedback data after handover?

After handover, your team owns the feedback data, the score configuration and the review rules, while the Langfuse instance itself stays in your infrastructure. Ongoing support, upgrades and continuous testing are available as retainers, and they should be scoped in writing alongside the build. Ask any provider to name who handles Langfuse upgrades, since major versions change the infrastructure and data model, and who reviews score quality over time.

How DeployOpen scopes feedback capture for self-hosted Langfuse

Feedback capture starts with a written scope, agreed before any code is changed. DeployOpen works through the decisions that determine whether user feedback becomes usable scores: which signals the product will collect (thumbs, ratings, regenerations, copy events, abandonment), which Langfuse score configs define each one (data type, allowed range or categories, and whether the score is numeric, categorical or boolean), how each score is linked to a trace or observation through the trace ID the application already holds, and which negative scores land in an annotation queue for review. Privacy handling is part of the same document. It names which user fields may be attached to a score, which free-text comments are stored, and how they are masked or excluded before they reach Langfuse. Each decision is written down with an owner on the client side, so the scope can be reviewed by the security and privacy teams before build starts.

The engagement then delivers the integration and its verification. Work covers the frontend capture pattern, the server-side score API calls, the trace linkage tests, and the queue routing rules, checked against a test deployment in the client's infrastructure. Verification should show that a thumbs-down on a known trace creates one score with the agreed config, that duplicate clicks do not create duplicate scores, and that no personal data appears in fields the privacy review excluded. Ask whether the scope includes a retest after the first production release, since traffic patterns often expose linkage gaps that test data does not. Engagements are fixed-scope, so the written agreement should state what is delivered, what the client must provide (test accounts, a staging Langfuse instance, sign-off owners), and what is out of scope.

Ongoing work is handled through a retainer when the feedback model needs to keep pace with the product. Score configs change as the product changes, new features need new signals, and Langfuse upgrades can touch the API surfaces the integration depends on. DeployOpen offers retainers for ongoing support, upgrades and continuous testing, and the quote follows from the written scope rather than a published price list. When requesting a quote, ask which items are one-time (initial scope, integration, verification) and which recur (score config maintenance, queue reviews, upgrade checks), and confirm who on your side approves changes to the privacy rules. DeployOpen is not a Langfuse partner or reseller, so confirm any vendor-specific support terms directly with Langfuse.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.