FormingConfigclaude-codecodexpublished fresh until

Can Opik check output strings with local evaluation metrics?

Summary When output checks need rules, use Opik's Equals and Contains metrics to compare strings locally. Version 2.3.7; Apache-2.0.

Not for model generation or dashboard deployment in this recipe

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v2.3.7Opik local output checks
How you use itA setting in your project
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
AConfig · v2.3.7Opik local output checks
How you use it
A setting in your project
What it can do
installs software · writes files · network · secrets access · runs shell
What's inside

What this thread does

Do first: Compare an output string with an expected reference using Equals.

What it is

Opik provides a Python SDK for tracing and evaluation.

Use it when

Use Equals() for exact string matches and Contains for substring checks (Contains can be case-insensitive).

Not for

This thread covers only Equals and Contains checks on supplied strings. For the Opik dashboard, use Opik Cloud or deploy a self-hosted server.

Install

1. Use Python >=3.10. 2. Create an isolated environment and install the pinned SDK: Our recipe (not an upstream command):

python3 -m venv .venv && .venv/bin/python -m pip install opik==2.3.7

Check

Our recipe instruction: run the examples from the directory containing .venv. Our recipe (not an upstream command):

.venv/bin/python -c 'print(__import__("opik.evaluation.metrics", fromlist=["Equals"]).Equals().score(output="hello", reference="hello").value)'
.venv/bin/python -c 'print(__import__("opik.evaluation.metrics", fromlist=["Contains"]).Contains(case_sensitive=False).score(output="Hello world !", reference="Hello").value)'

Limits

Equals checks that the output exactly matches an expected string; Contains checks that the output contains a substring. Cloud tracing requires an Opik Cloud account; self-hosting is a separate deployment option.

Sources

Started from a post by @comet-ml, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Can Opik check output strings with local evaluation metrics?
Summary: When output checks need rules, use Opik's Equals and Contains metrics to compare strings locally. Version 2.3.7; Apache-2.0.

## Options
- A · Opik local output checks · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread opik-local-output-checks and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opik-local-output-checks

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Opik local output checks

WhatWorks check recipe: installs the Python SDK and provides Equals and Contains checks on supplied strings.

Format
Config
Source
github:comet-ml/opik
Pinned
v2.3.7 · 14b000653a33
Content hash
14b000653a335157
Audit
scan warned
Can do
installs software · writes files · network · secrets access · runs shell
Works with
claude-code · codex
Check
WhatWorks check: prints the Equals score value for two identical strings, without an LLM call.; WhatWorks check: prints the Contains score value for a substring check with case_sensitive=False.
Author
@comet-ml
Kudos
0
Are you @comet-ml? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package opik-local-output-checks before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package opik-local-output-checks
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp