New Online Evaluation Rule Editor
Creating an online evaluation rule now happens in a side panel. Click Evaluator, choose LLM-as-a-Judge, Decision model or Code evaluator, and set the name and prompt or code on the left, with the scope, filtering and sampling, scores and cost limit on the right. A new judge or decision model starts from a set of templates that already use the right variable for the scope you picked, or you can click Type your prompt to write your own. The Enabled toggle in the footer lets you create a rule paused and switch it on later.
Cohere Integration
Opik now has a native integration for the Cohere Python SDK. Wrap your client with track_cohere and every chat() and chat_stream() call is logged with its messages, response, model and token usage. The async client is supported too, so Command models show up next to the rest of your traces.
Bug Fixes & Improvements
- View an older dataset or test suite version — Open a version from the history to browse its items without restoring it.
- Playground runs on the server — Running a Playground experiment on a regular dataset and stopping it now happen on the server, and results stay on screen while a run progresses. Runs on an empty dataset or test suite are blocked, and rate limit or rejected-role errors say what to do next.
- Multiple media parts from one variable — A single Playground variable holding a list now sends one image, video or audio part per entry.
- OpenTelemetry project routing — Set the
opik.project_nameattribute on spans to send them to a specific project, which helps when a Collector processor drops theprojectNameheader. - Environment filter on threads — The Threads tab can be filtered by environment, and the logging guide explains how threads get theirs.
- Internal traces in threads — Thread Messages hide internal traces behind a toggle and mark them with an Internal badge.
- Alert custom fields — Alerts take optional custom fields that are included in the EventBridge event.
- New models — Claude Haiku 5.5 and Sonnet 5.5 are available in the Playground and online evaluation, and the online evaluation defaults for OpenAI and OpenRouter are GPT 5.5.
- Model parameters follow each model — Reasoning effort levels, defaults and OpenRouter parameters now match what each model supports, and base64 images, video and audio are sent to Vertex AI as inline data.
- Clearer project name errors — Creating a project with a name that already exists shows a clear message.
- Prompt library and Playground — Saving to the prompt library twice by double-clicking creates one version, and unsaved edits to a library prompt are kept when you leave the Playground.
- Test suites — Runs finish when the assertion judge can’t run, falling back to the next provider.
- OpenAI Decisions API tracing — The Python and TypeScript OpenAI integrations log Decisions API calls.
- SDK tracing — Bedrock
invoke_modelClaude and Nova streams keep their tool calls, thinking and citation blocks, parallel tool calls from streamed TypeScript OpenAI responses stay separate, and Gemini thinking and tool-use prompt tokens are counted in TypeScript usage. - SDK evaluation — Aggregates report how many scores they left out, and conversation windows whose assistant reply has no text are not graded.
- Pricing — OpenTelemetry spans that report the provider as its API host are priced, and workspace metrics include authored feedback scores.
- Self-hosting — Redis Sentinel is supported, with a setup guide, and the Python SDK is published to PyPI with Trusted Publishing.
- Dashboards — The Add widget menu makes dashboard editing and Ollie widgets easier to find.
- Documentation — New judge metric and judge alignment tutorials, a guide to separating dev, staging and prod with environments, and updated guides for test suite assertions, Diagnostics and OpenTelemetry.
Performance Improvements
- Faster span and trace reads — Span, trace and thread reads, plus project size and feedback score name lookups, are bounded to the project’s span weeks, and large span and trace write payloads are streamed.
And much more! 👉 See full commit log on GitHub
Releases: 2.2.104, 2.2.105, 2.2.106, 2.2.107, 2.2.108, 2.2.109, 2.2.110, 2.2.111, 2.2.112, 2.2.113, 2.2.114, 2.2.115, 2.2.116, 2.2.117, 2.2.118, 2.2.119
Together AI Integration
Opik now has a native integration for the Together AI Python SDK. Wrap your client with track_together and every chat completion, from both together.Together and together.AsyncTogether, is logged with its messages, response, model and token usage. Streaming is supported, and calls nest correctly under @track-decorated functions, so Together models show up alongside the rest of your traces.
Open Spans from the Agent Graph
Nodes in the agent graph are now clickable. Selecting a node opens the matching span in the trace tree, and a node that ran several times opens the next run on each click, with the run number in its tooltip. The node of the selected span gets a highlighted border, and this works in both the side panel and the fullscreen graph view. Graphs from LangGraph map nodes to spans automatically, and the DSPy and Google ADK integrations now record a graph_node_id in span metadata so their nodes map correctly too, including modules that share a name.
Bug Fixes & Improvements
- Prompt saves don’t duplicate versions — Saving a prompt whose content is unchanged returns the latest version instead of creating an identical one.
- Playground model pickers list runnable models — Anthropic, Gemini and Vertex AI models that the Playground can’t run are no longer offered.
- Clearer provider errors — When OpenRouter relays an upstream failure, the message now shows the provider’s own reason. Gemini no longer receives a max output tokens value of 0.
- Loading prompts with media — Loading a prompt that contains images, video or audio into a system or assistant message keeps its text and shows a toast explaining that media wasn’t loaded.
- Project metrics default to time-based aggregation — New project metrics widgets with a breakdown start in Time-based mode, and changing the group-by field keeps your chosen mode.
- Consistent terminology — Experiments and Optimizations pages name the item source as Test suite or Dataset, and say “Item source” where either applies.
- More accurate span costs — Spans are priced from each provider’s own usage format, and providers in the LiteLLM price file are all priced.
- Google ADK tracing — Agent spans opened with
start_spanare tracked on google-adk 2.12.0. - Agent Insights first runs — Automatic first runs that stop reporting time out and are retried.
- Self-hosting — The Helm chart has an opt-in
alerts.awsEventBridgeblock for sending alerts to AWS EventBridge, ClickHouse force-merge settings are opt-in, and docker-compose re-owns root-owned MinIO volumes instead of asking you to delete data. - Documentation — First-run snippets, doc examples and screenshots have been corrected and refreshed.
Performance Improvements
- Faster span reads — Trace-keyed span reads are bounded by the
span_weeksindex, and span list, stream and stats queries run on the shard directly. - Faster prompt lookups — A prompt’s latest version is found via
MAX(id), served from the index.
And much more! 👉 See full commit log on GitHub
Ollama Integration
Opik now has a native integration for the Ollama Python SDK. Wrap your client with track_ollama and every chat() call, from both ollama.Client and ollama.AsyncClient, is logged with its messages, response, model and token usage. Streaming is supported, and Ollama’s own counters are mapped to Opik token usage so local model runs show up alongside the rest of your traces.
Bug Fixes & Improvements
- Logs keep their filters — Filters on the Logs page are restored when you return to it.
- Anthropic thinking effort is respected — The effort chosen for Claude models is sent to Anthropic as
output_config.effortin the Playground, experiment runs and LLM-as-judge rules, andmax_tokensis honoured for Anthropic chat completions.claude-opus-5-5is available as a model. - Better model parameter panels — Ollama and Bedrock get their own parameter panels, the max reasoning effort is offered on OpenAI keys set to the Responses API, and sampling parameters that OpenAI reasoning models, Gemini 3 models, and OpenRouter ignore are hidden or no longer sent. Vertex AI’s max output tokens slider is respected.
- Clearer Playground — The Playground starts with a system and a user message, + Message keeps them alternating, runs with audio a model can’t accept are blocked, the per-prompt Run is hidden when there’s only one prompt, and the output explains why it is greyed out after a prompt edit.
- Dataset uploads report problems up front — CSV files with duplicate headers and JSON/JSONL files with syntax errors are rejected when uploaded, and a failed import is shown on the dataset items tab.
- Spans with an unloaded parent show at the trace root — Spans whose parent isn’t loaded are displayed at the top level of the trace instead of being hidden.
- Easier navigation from evaluation items — “View evaluation item” has a way back to the experiment, and the run toast says “View experiment” when a single experiment ran.
- Self-hosted Comet API keys resolve to a login — The Python SDK CLI identifies self-hosted Comet users the same way it does on cloud.
opik mcp configurefor agents — The command accepts--deployment cloud|local|self-hostedwith--urland--workspace, so a coding agent can run it without a terminal, and exits with code 1 when the connection check fails.- SDK tracing fixes —
@trackgenerators that aren’t exhausted, async LangChain callbacks, and OpenAI streams (each now aggregated with its own API’s aggregator) all log correct spans. An explicitupdate_current_span/update_current_traceoutput wins over the value@trackcaptures. - TypeScript SDK — OpenAI Responses API input/output tokens map to prompt/completion tokens, scores from metrics that fail during
evaluate()are kept and reported, and OQL string values accept doubled-quote escapes. - OpenTelemetry ingestion — An OTel batch is kept when the Redis trace-id lookup fails.
- Thread stats — Thread counts and stats are attributed by their traces’ IDs.
Performance Improvements
- Faster thread and trace search — Trace and thread search read only the weeks of the project being searched, once, and
find_thread_by_idreads thread messages for just two traces. - Faster charts and workspace metrics — Charts, KPI cards and workspace metrics use ID-based, open-ended time ranges.
- Faster prompt lookups — A prompt’s latest version is served from the index.
Automatic Annotation Queue Population
Annotation queues can now fill themselves. Turn on Automation when creating or editing a queue and describe what’s worth reviewing as conditions on feedback scores (for example, a low score from an online evaluation rule). Traces and threads logged by your application are added to the queue as soon as they qualify, so reviewers see the problem cases without anyone watching the traces list. Conditions are combined with AND (up to five), you can optionally cap how many items automation adds, and the items table shows how each item arrived under Source. Automation is available out of the box.
Jev as a Classifier Judge for Online Evaluation
Online evaluation rules on traces and spans can now use Jev, TypeSafe AI’s classifier model served through OpenRouter, as the judge. Jev answers yes/no questions about a piece of text and returns a calibrated probability, which makes it a fast, low-cost option for pass/fail checks. Configure the OpenRouter provider, then pick ~typesafe/jev-latest (or a pinned version such as typesafe/jev-1.13) in the rule’s model selector. Each score’s description becomes the question Jev is asked, and every score is answered in a single call.
Bug Fixes & Improvements
- Prompt versions in the experiment compare view — The Configuration tab now has a “Prompt version” row with one value per experiment, so you can see which prompt version each experiment ran. It works with “show differences only”. Compare prompts and conversations in the side panel also render as formatted messages instead of a single flattened string.
- Static custom headers on OpenAI and OpenRouter providers — The provider dialog accepts custom headers for these providers, which enables things like OpenRouter app attribution (
HTTP-Referer,X-OpenRouter-Title). - Simpler
opik mcp configureonboarding — The command now asks for one client and finishes inside it, including the browser sign-in for Claude Code.npx opik mcp configureworks as a wrapper around theuvxcommand. - More accurate model parameters in the Playground — Model parameters that a provider would reject are no longer sent, the parameters button is hidden for providers with nothing to set, and low and medium thinking levels are offered for Gemini 3.1 Flash Lite.
- Pretty-printed conversations in span output — A conversation logged as a span’s output is displayed as readable messages.
- Better filtering — Quick filters route to the table of the selected entity, and dotted metadata keys are bracket-quoted in filters so they match correctly.
- Experiment table polish — The experiment name column stays pinned in the compare table, the Compare button reacts to how many experiments are selected, judge-reason newlines are kept at Detailed row height, and the column picker shows the selected-column count.
- More accurate token usage and costs — Gemini tool-use prompt tokens, Bedrock cache tokens, and Nova usage fields are now counted in
prompt_tokens/total_tokens, and Gemini tool-use prompt tokens are priced as input. OTel spans fromquarkus-langchain4jprovider names are priced as well. - Integration reliability — LiteLLM streams that are abandoned or fail mid-iteration now end their span, ADK LLM spans keep usage when the inference span ends early, LangChain usage is kept when
base_urlis a string, and Azure OpenAI haystack components are recorded withprovider=azure. - SDK and metric fixes —
ignore_argumentsapplies to arguments passed through**kwargs, paginated dataset and experiment streams no longer stop at an unreadable record, feedback score batches are bounded by payload size, and the PromptInjection metric no longer flags normal output. Moderation and Usefulness no longer read a null judge score as 0.0, and ConversationDegenerationMetric scores wordless assistant turns. - Alert and rule fixes — Stored alert configurations using the enum-name form of an operator are accepted, and code-metric rules score traces that have no metadata.
- Hidden internal workspaces — Internal workspaces no longer appear in the MCP OAuth consent list.
Performance Improvements
- Faster trace, span and experiment reads — Reads that look up traces, spans or experiment items by ID now only scan the weeks those IDs resolve to, which reduces the data read for stats, scored-span lookups and experiment reads.
And much more! 👉 See full commit log on GitHub
Bug Fixes & Improvements
-
Large threads no longer fail to load —
threads/retrievehad been intermittently returning a 500 since a ClickHouse join between traces and their aggregated spans could pick either side to build the join from; on a large thread it occasionally picked the multi-gigabyte side and ran out of memory. The join now always builds from the smaller, pre-aggregated side, so large threads load reliably. -
Diagnostics checks your credit balance before starting a run — Starting a diagnostic run when a workspace was out of credits used to fail only after the run had already started. The run button now checks affordability upfront, and the page shows a clear out-of-credits state instead of a run that fails partway through.
-
Image and other media in experiment output now renders in the comparison views — The experiment comparison sidebar and the test-suite sidebar only extracted media (e.g. images) from a dataset item’s input; a trace’s output went straight into the raw JSON view with no media extraction, so an image an SDK logged as output never showed. Output media now renders the same way input media does, including images served from URLs with no file extension.
-
Online evaluation rule duration filters now use the right unit — A duration filter typed as ”> 5” on a rule was compared against the underlying duration column in milliseconds, so on an LLM-as-judge rule it matched effectively every trace instead of only the slow ones. The rule dialog now converts the value the same way the traces table already does, and the duration column is labeled “Duration (s)” so the unit is clear.
-
Bedrock and Mistral streaming integrations no longer lose parts of the response — OpenAI models called through Bedrock’s
invoke_model(gpt-oss, GPT-5.x, GPT-6) stream text and stop-reason in a shape the aggregator didn’t recognize, so those spans ended up with empty output and zero token usage. Bedrock’sconverse_streamsent a tool call’s arguments as JSON fragments that got overwritten instead of merged, so a streamed tool call kept only its last fragment, and parallel tool calls collapsed into one. Mistral’s reasoning models (Magistral) stream content as a list of thinking/text chunks rather than a string, which crashed the aggregator and left the whole span without output. All three now aggregate correctly. -
Judge calls to Bedrock-hosted GPT-5.x and GPT-6 models no longer fail — Opik already dropped the
temperatureparameter for GPT-5-family judge models, since these models reject it, but only recognized them by their plaingpt-5*names. The same models routed through Bedrock (e.g.bedrock/converse/us.openai.gpt-6-...) keep abedrock/prefix, weren’t recognized, and had their judge calls rejected. They’re now matched and handled the same way. -
Hallucination and SycEval judge reasons render as text, not a Python list — Both metrics ask the judge for a list of reason strings, but the parser rendered that list with Python’s
str(), so the explanation shown to you (and uploaded with the score) was a literal['reason 1', 'reason 2']instead of readable prose. It’s now joined into text the same way other list-based judge reasons already are. -
Context-precision and context-recall judges get the same prompt-injection hardening as last week’s hallucination and G-Eval fix — Content being evaluated by these metrics is now clearly namespaced from the rest of the judge prompt, so an input, output, or context that happens to contain something resembling an instruction or a closing delimiter can no longer influence the verdict.
-
Several built-in metrics are more robust on edge-case input — BLEU now rejects a non-positive or non-integer
n_gramsinstead of silently scoring 0 or raising a rawKeyError; METEOR tokenizes its input before handing it to NLTK instead of raisingTypeErroron every call; ChrF now scores a candidate against each reference separately and keeps the best match instead of passing the whole reference list into NLTK’s single-reference scorer (which scored a perfect match as low as 0.26); and VADER sentiment now downloads its lexicon on first use instead of failing with a bareLookupErroron a fresh install. -
@tracknow logsslots=Truedataclasses correctly — Encoding a dataclass defined withslots=Trueread from__dict__, which such classes don’t have, so the logged value was either the object’s repr string or an empty object instead of its actual fields. -
Config files with
%in a value no longer breakopik configure—~/.opik.configis read and written with Python’sConfigParser, which by default treats%as the start of an interpolation sequence; a value containing%(for example, in a URL) could fail to load or save. Interpolation is now disabled for this file. -
Custom scorers now get a real name in results instead of crashing — Passing a
functools.partial-wrapped function or a callable class instance as a scorer raisedAttributeErrorbecause neither has a__name__. Both are now named sensibly (the wrapped function’s name, or the class name as a fallback). -
Gemini usage without
candidates_token_countis accepted — A Gemini response that omits this field (for example, at content-filter length) is no longer rejected while building token usage; the count is treated as unknown rather than causing an error. -
19 more providers are priced correctly — Hyperbolic, Baseten, Lambda AI, nscale, OCI, Replicate, watsonx, Cohere, Novita, Cloudflare, Anyscale, Scaleway, OVHcloud, GMI, Gradient AI, Libertai, Azure AI, Vercel AI Gateway, and OpenRouter are now registered as canonical providers, so calls through them resolve a model price instead of going unpriced.
-
Large dataset batch uploads no longer exceed the configured size cap —
StreamingBatchWriterdecided when to flush a batch based only on the serialized items’ size, without counting the surrounding envelope (dataset name, project name, batch id, and JSON wrapper). Every flushed request body was slightly larger than the configured cap; the cap now accounts for the full request body. -
video_urlplaceholders in chat prompts are validated — Placeholder validation (validate_placeholders=True) checked{{...}}templates insidetextandimage_urlprompt parts but skippedvideo_url, even though it’s rendered the same way, so a templated video URL could silently fail to substitute. -
Overlapping evaluations no longer leave your app’s HTTP connections short-lived —
evaluate()temporarily patches httpcore’s keep-alive behavior for the duration of a run and restores it afterwards. When two evaluations ran at the same time, the first one to finish could restore the patch early (disabling it for the run still in progress) or the last one to finish could restore the wrong thing, leaving the host application’s own connections short-lived after both runs completed. The patch is now reference-counted so it’s only removed once every overlapping run is done.
Performance Improvements
- Reading large experiments page by page is up to ~2.6x faster — The query behind experiment item paging was re-evaluated up to six times per page because it’s referenced from multiple places in the query plan; it’s now evaluated once per page and the result reused. Measured on a 100k-item experiment at a page size of 2000: a 50-page read dropped from 14.48s to 5.56s.
- The experiment compare view no longer re-scans the whole experiment on every page — Each page of the compare view re-resolved the same target-project lookup by reading the experiment’s entire trace set, even though the answer is identical for every page of that read. The lookup is now cached per read, so its cost no longer scales with the size of the experiment.
- Trace and thread reads use less CPU and read less data —
find_trace_streamandfind_thread_by_iddeduplicated spans with a ClickHouseFINALread, which is expensive. Both now use a pre-aggregated form instead, cutting CPU by 22–50% and roughly halving bytes read in production measurements, with identical results. - Span-by-ID reads scan less data — Reads that look up a span by ID now bound themselves to the week(s) that ID’s timestamp resolves to, instead of scanning across all partitions.
Bug Fixes & Improvements
opik importcan import traces of any age again — The trace importer derived each imported trace’s ID from the exported trace’sstart_time, which bakes that original timestamp into the ID’s UUIDv7 prefix. Opik validates that an ingested ID’s embedded timestamp falls inside an ingestion window around now — 24 hours by default on Opik Cloud, which is what keeps its storage layer partitioned correctly — so importing anything older failed withInvalid UUID for id ... reason 'too_old'. Imported traces now get IDs minted at import time, which also keeps IDs unique across projects and workspaces.start_timeandend_timestill carry the original values, spans and feedback scores are remapped onto the new IDs, and each trace records the ID it came from in its metadata as_import_id. Traces are imported in the order the source project listed them, so the destination trace list and thread view keep that order; note that the time-bucketed project metrics key off the ID, so imported traces count at import time. If you hit the error above, upgrade the SDK. See Imported trace and span IDs.
Map Trace and Span Fields onto Dataset Item Columns
Adding traces or spans to a dataset always used a fixed shape — input from the trace’s input, expected_output from its output, nothing else. Getting any other field into the dataset meant exporting and reshaping the data by hand.
The “Add to dataset” dialog now has an Advanced mapping toggle. With it on, you can re-point input and expected_output at a different field, add extra columns from a path explorer over the sampled traces/spans, and use Quick add chips to pull in common enrichment fields (feedback scores, metadata, tags) or columns the target dataset already has. A coverage badge on each mapped field and a preview table show what will actually land in the dataset before you commit.
Name Experiments from the Playground
Playground experiments were always given a random adjective_noun_number name, with no way to set one — making it harder to find a specific run later in the Experiments list.
The Playground’s output toolbar now has an optional experiment name field. Each output column derives its own name from it by appending a letter (concise → concise_a, concise_b, …), and a preview shows what a run will produce before you start it. The field is optional: leave it empty and Opik generates a name exactly as before, so nothing changes if you don’t use it. A completion toast reports the experiments created and links straight to the comparison view.