CompletionKit

com.completionkit由 completionkit.com 發布官方發布者v1.0.0更新於 Oct 26, 2026

Prompt evals over MCP: run a prompt on your dataset, score each output 1-5 with an LLM judge.

已驗證Streamable HTTP可網頁執行資料與分析AI 與機器學習

概覽

AI 產生的概覽

CompletionKit 是託管的提示詞評測服務,讓助理在資料集上執行提示詞、以 LLM 評審或檢查項目評分,並反覆調整改進。

可以做什麼
建立、讀取、更新、刪除與發布帶版本的提示詞,並要求依評審回饋產生的改進建議草稿。建立、啟動、重新評分、重跑與重試執行,並檢視各指標平均分的細項。列出並檢視回應,可依分數篩選或省略內容。建立與管理 CSV 資料集,包括從公開網址匯入。管理評審指標與檢查指標、指標群組及指標版本,可發布或捨棄。列出模型供應商憑證,但不揭露其 API 金鑰。
適用情境
當你想用真實資料測試提示詞,並追蹤某次變更是改善還是破壞了結果,而不是憑肉眼判斷品質時使用。適合反覆調整提示詞範本、模型、溫度或資料集並比較各版本分數的團隊。
執行需求
透過 streamable HTTP 連線的遠端 MCP 端點,需在 Authorization 標頭提供 bearer 權杖,可於 Settings > API tokens 建立。此連線只能存取一個 CompletionKit 組織。模型供應商金鑰由擁有者透過服務加入,不在對話中提供。
安裝前請注意
Authorization bearer 權杖可存取該組織的提示詞、資料集、執行與指標,須妥善保管。相關工具會建立、更新、發布與刪除提示詞、執行、資料集、指標及指標版本,助理的修改可能改變線上評測設定。從網址匯入資料集會讓伺服器抓取該網址。供應商 API 金鑰不會回傳,但也不應貼到對話中。

AI 概覽如何產生和驗證

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 CompletionKit,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.completionkit%2Fevals/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "completionkit": {
      "type": "http",
      "url": "https://completionkit.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

[CompletionKit]

[Gem Version] [CI] [coverage]

Your prompts need tests too.

Run every prompt against real data. Score each output against criteria you define, with an LLM judge or a plain check. Change anything: the prompt, the model, the temperature, the dataset. Re-run and see exactly what got better and what broke. When the scores tell you something's off, CompletionKit suggests an improved prompt based on the judge's feedback on your runs. You inspect the diff, apply it as a new version, and check the improvement.

It's the difference between "this prompt seems to work" and "this prompt scores 4.3 out of 5 across 200 inputs, up from 3.8 last version."

Start on completionkit.com → | RubyGems

[The CompletionKit dashboard, showing workspace totals, run activity over the last 14 days, the worst-scoring metric, version-over-version score changes, and recent runs]

How it works

[CompletionKit workflow: a prompt and a dataset feed a run against a model, an LLM judge scores each output on your rubric, low scores drive an AI-suggested rewrite, and the new prompt version re-runs so you can compare]

It's a loop. Each pass leaves you with a score you can compare against the last one.

  1. Create a prompt with {{variable}} placeholders.
  2. Upload a dataset. A CSV whose column headers match the variable names.
  3. Run it against a model and score the outputs against your metrics.
  4. Iterate. Change the prompt, the model, the temperature, or the dataset and re-run. CompletionKit versions your prompts, so you can always compare against earlier results.
  5. Get suggestions. When scores drop, ask CompletionKit for an improved prompt. The suggestion comes from the judge's feedback on each response, not generic prompt advice. Inspect the diff and apply it as a new version.

Concepts

  • Prompt. A versioned template with {{variable}} placeholders. Editing a prompt that has already run creates a new version, so earlier results stay reproducible.
  • Dataset. A CSV of real inputs. Each row becomes one test case.
  • Run. One execution of a prompt against a dataset. It records every input (model, temperature, metrics) and stores every output and score.
  • Response. The model's output for one dataset row, with its scores attached.
  • Metric. What you score each response on. A judge metric has an instruction, evaluation steps and a 1 to 5 scale, and an LLM judge applies it. A check metric is a pass or fail test with no LLM involved: contains, does not contain, equals, regex, valid JSON, JSON field equals, length bounds, list overlap, number bounds, and number equals.
  • Metric group. A set of metrics you can apply to a run together.
  • Tag. A label for prompts, runs, metrics and datasets. Filter any list by tag (?tag[]=...).
  • Provider credential. An API key for a model provider. It is encrypted at rest and never returned through the API.

Three ways to run it

Every option has the same engine, UI, REST API and MCP server. The first two work with any stack: you run CompletionKit as a product and talk to it over HTTP and MCP, whatever language your app is written in. The third is for teams already on Rails.

1. Hosted at completionkit.com (recommended)

Sign up and start testing prompts. There's no Rails app to run, no migrations, no job worker and no servers to keep up. Your whole team shares a workspace. Plans are at completionkit.com/pricing.

2. Self-hosted standalone app

Run it on your own servers as a self-contained product. There's nothing to integrate and no Ruby to write: once it's up, you drive it through the web UI, the REST API and the MCP server. It needs Postgres and a host that can run a Rails app.

git clone https://github.com/homemade-software-inc/completion-kit.git
cd completion-kit/standalone
bundle install
bin/rails completion_kit:install:migrations
bin/rails db:migrate

Run a web server and a Solid Queue worker, in two terminals:

bin/rails server
bin/jobs

Or run both in one terminal with foreman: foreman start -f Procfile.dev.

Visit http://localhost:3000. Add a provider credential under Settings, create a prompt, upload a CSV dataset, and run it. See Deploying self-hosted when you're ready for production.

3. Mounted in your Rails app

gem "completion-kit"
bin/rails generate completion_kit:install
bin/rails db:migrate

The engine mounts at /completion_kit. Runs work through Active Job (CompletionKit::GenerateRowJob, CompletionKit::JudgeReviewJob, CompletionKit::RunCompletionCheckJob and others), so your app needs a real job backend such as Solid Queue, Sidekiq or GoodJob. Don't use the :async adapter in production. It runs jobs inside Puma's thread pool with no durability or retries, and a long LLM call will hold up web requests.

Using your own layout

If your app renders the engine's pages inside its own layout, include the engine's stylesheet and JavaScript there:

<%= stylesheet_link_tag "completion_kit/application", media: "all" %>
<%= javascript_include_tag "completion_kit/application", defer: true, nonce: true %>

Without the JavaScript, much of the UI quietly stops working: clickable rows, dialogs, copy buttons, the run form, live run status and local times among them.

Content Security Policy

The engine's pages have no inline scripts or inline event handlers, and the engine layout puts the request nonce on its script tags, so they work under a nonce-based script-src. The views still use inline style attributes, so keep style-src out of the nonce directives and allow 'unsafe-inline' there for now.

Use a nonce that lasts the whole session. Turbo Drive re-creates scripts on each visit using the nonce from the csp-nonce meta tag, but the browser keeps enforcing the policy from the first page it loaded, so a fresh nonce per request blocks scripts after the first visit. The Rails default nonce, the session id, is empty on a new visitor's first response, so it blocks that first page's scripts. Keep a random nonce in the session instead, and skip API controllers so API and MCP calls don't get a session cookie:

Rails.application.configure do
  config.content_security_policy do |policy|
    policy.default_src :self
    policy.script_src  :self
    policy.style_src   :self, :unsafe_inline
  end

  config.content_security_policy_nonce_generator = lambda do |request|
    next if request.controller_instance.is_a?(ActionController::API)

    request.session[:csp_nonce] ||= SecureRandom.base64(16)
  end
  config.content_security_policy_nonce_directives = %w(script-src)
end

Providers

CompletionKit finds the available models from each provider's API.

ProviderEnv varsWhat it covers
OpenAIOPENAI_API_KEYGPT-5, GPT-4.1, GPT-4o and the rest
AnthropicANTHROPIC_API_KEYClaude Opus, Sonnet, Haiku
Ollama or a local endpointOLLAMA_API_ENDPOINT (default http://localhost:11434/v1), OLLAMA_API_KEY (optional)Any model you've pulled with Ollama, or any OpenAI-compatible local server (vLLM, LM Studio, llama.cpp)
OpenRouterOPENROUTER_API_KEY100+ models from 30+ providers through one key
Azure AI FoundryNone. Add it as a provider credential with api_key and api_endpoint (api_version is optional)Azure OpenAI deployments and Foundry projects

Set these as environment variables, in the generated initializer, or as provider credentials under Settings in the web UI.

The Ollama key from OLLAMA_API_KEY or config.ollama_api_key is only ever sent to the Ollama endpoint you configured, or to http://localhost:11434/v1 when you configured none and loopback endpoints are allowed. A provider credential without its own key borrows that key only while it points at that same endpoint. Point it anywhere else and CompletionKit sends no key, so store the key on the credential. A key stored on a credential always goes to that credential's endpoint. Endpoints match on scheme, host, port and path; letter case, a written-out default port, a trailing slash and a trailing /v1 don't count. A blank stored key counts as no key.

Custom model endpoints and CSV imports by URL may reach the server's own loopback interface by default, so a local Ollama works out of the box. If the people using CompletionKit shouldn't reach services on the app server itself, set config.allow_loopback_endpoints = false. Private, link-local and reserved addresses are always refused.

Encryption

Provider API keys are encrypted at rest with Active Record encryption. The app won't boot in production until three encryption keys are set. Generate them:

bin/rails db:encryption:init

Then set them as environment variables:

COMPLETION_KIT_ENCRYPTION_PRIMARY_KEY=<generated value>
COMPLETION_KIT_ENCRYPTION_DETERMINISTIC_KEY=<generated value>
COMPLETION_KIT_ENCRYPTION_KEY_DERIVATION_SALT=<generated value>

You can put them in config/credentials.yml.enc under active_record_encryption instead. In development the standalone app falls back to built-in values, so you can skip this locally.

Authentication

CompletionKit needs authentication anywhere it's deployed. In development and test the routes are open, with a warning in the log. Every other environment returns 403 until you configure one of these two modes.

Basic auth

CompletionKit.configure do |c|
  c.username = "admin"
  c.password = ENV["COMPLETION_KIT_PASSWORD"]
end

Your own auth (Devise and the like)

CompletionKit.configure do |c|
  c.auth_strategy = ->(controller) { controller.authenticate_user! }
end

Reviewer names

When someone agrees or disagrees with a judge's score in the web UI, CompletionKit saves that verdict under a reviewer name. Each reviewer keeps one verdict per response and metric, so give each person their own name or their verdicts overwrite each other. Set current_reviewer to a callable that takes the controller and returns the signed-in person's name:

CompletionKit.configure do |c|
  c.auth_strategy = ->(controller) { controller.authenticate_user! }
  c.current_reviewer = ->(controller) { controller.current_user&.email }
end

It must return a String or nil. Anything else, such as a user record, raises CompletionKit::ConfigurationError. When current_reviewer is unset or returns a blank value, verdicts go under username, or "operator" if there's no username.

The web UI doesn't read the X-Remote-User header by itself. If a proxy in front of your app sets it, pass it through:

CompletionKit.configure do |c|
  c.current_reviewer = ->(controller) { controller.request.headers["X-Remote-User"] }
end

Only do this when a trusted proxy always overwrites that header. Otherwise any client can send it and claim any name.

The REST API and the MCP server take the reviewer name from their own created_by parameter.

Limits

Rate limits

The REST API, the MCP endpoint and the web UI are rate limited per IP, per minute. The defaults are generous:

CompletionKit.configure do |c|
  c.api_rate_limit = 120  # REST API and MCP, requests per minute
  c.web_rate_limit = 300  # web UI, requests per minute
end

Limits are counted in Rails.cache. A shared store such as Solid Cache or Redis counts across all your app instances. A per-process store limits each instance on its own.

Input limits

Uploads, prompt templates and regex checks have limits, so one huge or hostile input can't tie up a worker:

CompletionKit.configure do |c|
  c.max_upload_bytes = 25 * 1024 * 1024  # largest dataset CSV or import file (default 25 MB)
  c.max_template_bytes = 1024 * 1024     # largest prompt template (default 1 MB)
  c.regex_timeout = 1.0                  # seconds a regex check may spend on one row (default 1.0)
end

A prompt over max_template_bytes fails validation when it's saved. Prompts saved before you lowered the limit keep working until their template changes.

A dataset fails validation when its header row is blank or longer than 64 KB (a fixed limit), or when the CSV isn't valid UTF-8. Export spreadsheets as UTF-8 CSV.

A regex check that runs out of time fails that row and says so. The limit is regex_timeout, or your app's Regexp.timeout if that's shorter, so the engine never loosens a stricter limit you set. It sets the limit per pattern and never touches the process-wide Regexp.timeout. Set regex_timeout to at least 0.001 seconds, or to nil to rely on Regexp.timeout alone. Any other value, such as 0 or Float::INFINITY, raises an ArgumentError when the initializer runs.

REST API

Every resource is available through a JSON API with a bearer token:

CompletionKit.configure { |c| c.api_token = ENV["COMPLETION_KIT_API_TOKEN"] }
curl -H "Authorization: Bearer $TOKEN" \
  http://localhost:3000/completion_kit/api/v1/prompts

Visit /completion_kit/api_reference in your running app for docs on every endpoint, with curl examples you can copy.

MCP server

CompletionKit runs a Model Context Protocol server at /completion_kit/mcp. It exposes every resource as tools that MCP clients such as Claude Code and Cursor can use directly:

{
  "mcpServers": {
    "completion-kit": {
      "url": "https://your-app.com/completion_kit/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

The API reference page in the app has snippets you can paste into your MCP client's config.

Deploying self-hosted

Any host that runs Rails will do: Fly, Render, Heroku, Docker and so on. Point it at Postgres with DATABASE_URL, set your provider env vars, and run cd standalone && bin/rails db:migrate on each deploy.

VariablePurposeDefault
COMPLETION_KIT_API_TOKENBearer token for the REST API and MCPNone, so the API is off
COMPLETION_KIT_USERNAMEWeb UI usernameadmin
COMPLETION_KIT_PASSWORDWeb UI passwordNone, so it's open in development only

You also need the three COMPLETION_KIT_ENCRYPTION_* keys from Encryption.

When a new gem version ships a migration, install it locally and commit it before you deploy:

cd standalone
bin/rails completion_kit:install:migrations
bin/rails db:migrate
git add db/migrate/ && git commit -m "install new engine migration"

Docker

The standalone app ships a Dockerfile, so you can run it without Ruby on the host. Build from the repository root, since the app needs the engine source next to it:

docker build -f standalone/Dockerfile -t completion-kit .

CompletionKit needs a Rails secret (SECRET_KEY_BASE) and the three encryption keys. Without Ruby on the host you can't run bin/rails db:encryption:init, so generate them with openssl and write everything to an env file:

cat > completion-kit.env <<EOF
DATABASE_URL=postgres://user:pass@host/completionkit
SECRET_KEY_BASE=$(openssl rand -hex 64)
COMPLETION_KIT_ENCRYPTION_PRIMARY_KEY=$(openssl rand -hex 32)
COMPLETION_KIT_ENCRYPTION_DETERMINISTIC_KEY=$(openssl rand -hex 32)
COMPLETION_KIT_ENCRYPTION_KEY_DERIVATION_SALT=$(openssl rand -hex 32)
EOF

Generate these once and keep them. If the encryption keys change, the provider keys already in the database can't be decrypted. Keep completion-kit.env out of version control and back it up somewhere safe.

Run the web process and a job worker from the same image and the same env file, so both share the same secrets:

docker run -d -p 3000:3000 --env-file completion-kit.env completion-kit
docker run -d --env-file completion-kit.env completion-kit ./bin/jobs

The web container runs db:prepare on boot, so migrations apply on first start and on every deploy.

Contributing

See CONTRIBUTING.md for development setup, testing and pull request guidelines.

License

CompletionKit 0.3.0 and later are licensed under the Business Source License 1.1. You may use CompletionKit for any purpose, including production, except offering it (or a derivative) to others as a hosted or managed service whose main value is CompletionKit itself. Each version becomes GPL-3 three years after it's released. Versions 0.3.0 through 0.29.3 shipped with a fixed date and become GPL-3 on April 25, 2029.

CompletionKit 0.2.x and earlier remain available under the MIT License.

For other licensing, contact [email protected].

來源:README.md,提交 3dc462d

工具

54

prompts_list

List all prompts

無需輸入參數。

prompts_get

Get a prompt by ID

輸入參數id必填

prompts_create

Create a prompt

輸入參數name必填template必填llm_model必填tag_namesdescription

prompts_update

Update a prompt. If the prompt already has runs, this creates a new DRAFT version (current=false) rather than editing in place or publishing. Promote it with prompts_publish, so an agent's edits don't go live without a gate. If it has no runs, it is updated in place.

輸入參數id必填nametemplatellm_modeltag_namesdescription

prompts_delete

Delete a prompt

輸入參數id必填

prompts_publish

Publish a prompt version, making it the current version

輸入參數id必填

prompts_suggest_improvement

Suggest an improved version of a prompt, grounded in a run's test results and judge feedback. Analyzes the run's responses, scores, and reviews, then returns reasoning plus a rewritten template (preserving {{variables}}) and persists it as a Suggestion. Requires a run that has a prompt (not a scoring-only run).

輸入參數run_id必填

runs_list

List all runs

無需輸入參數。

runs_get

Get a run by ID, including "metric_averages": a per-metric breakdown with each metric's average score (or pass rate for checks), how many rows it graded, and how many scored low. Use this to find the metric dragging a prompt down without listing responses.

輸入參數id必填

runs_create

Create a run. Omit prompt_id and provide output_column to score existing outputs by grading a pre-existing dataset column instead of generating new ones.

輸入參數name必填prompt_idtag_namesdataset_idmax_tokensmetric_idsjudge_modeltemperature另有 4 個

runs_update

Update a run

輸入參數id必填nametag_namesdataset_idmax_tokensmetric_idsjudge_modeltemperature另有 4 個

runs_delete

Delete a run

輸入參數id必填

runs_generate

Start a run. Required for every run, including score-only runs (no prompt): generates responses with the prompt when there is one, otherwise copies the graded dataset column and grades it.

輸入參數id必填

runs_regrade

Re-grade a run's existing responses with its currently attached metrics, without regenerating. Use after attaching or editing metrics on an already-generated run.

輸入參數id必填

runs_rerun

Create and start a fresh copy of a run with the same prompt, dataset, metrics, and settings. Use when the judge changed and you want a clean run instead of mixing versions.

輸入參數id必填

runs_retry_failures

Re-run only the failed responses of a run, optionally limited to specific response ids via "only".

輸入參數id必填only

responses_list

List responses for a run, in row order. Returns {total, limit, offset, returned, responses}. Defaults to 50 rows because full payloads are large: use "fields" to drop the bodies, "min_score"/"max_score" to isolate low scorers, and sort "score_asc" to read the worst rows first. For per-metric averages of the whole run use runs_get instead of aggregating here.

輸入參數sortlimitfieldsoffsetrun_id必填statusmax_scoremin_score

responses_get

Get a specific response

輸入參數id必填run_id必填

datasets_list

List all datasets

無需輸入參數。

datasets_get

Get a dataset by ID

輸入參數id必填

datasets_create

Create a dataset with CSV data. First row is the header. Two column names are recognized specially: "expected_output" is each row's answer key (ground truth) given to the judge and to checks that compare against the row's expected value, and "actual_output" is a pre-made output to score in a prompt-less run. Both are overridable per run (expected_column / output_column). Every column is also…

輸入參數name必填csv_data必填tag_names

datasets_update

Update a dataset

輸入參數id必填namecsv_datatag_names

datasets_delete

Delete a dataset

輸入參數id必填

datasets_create_from_url

Create a dataset by downloading CSV from a URL instead of inlining it. Use this for large datasets: pass a public http(s) URL and the server fetches the CSV directly, so the data never has to pass through the tool-call arguments. The URL is SSRF-checked and the download is capped at 10MB. First row is the header; the "expected_output" (answer key) and "actual_output" (pre-made output) columns are…

輸入參數url必填name必填tag_names

metrics_list

List all metrics

無需輸入參數。

metrics_get

Get a metric by ID

輸入參數id必填

metrics_create

Create a metric with evaluation criteria. For a deterministic check set metric_type:"check" and check_config. Per-kind required keys: value (contains/not_contains/equals/list_overlap/numeric_equals), pattern (regex), json_path+expected (json_path_equals), min and/or max (length_bounds/numeric_bounds); valid_json takes no extra keys. target_path is required when target is json_path; a target_path…

輸入參數name必填tag_namesinstructionmetric_typecheck_configrubric_bands

metrics_update

Update a metric. For a deterministic check set metric_type:"check" and check_config. Per-kind required keys: value (contains/not_contains/equals/list_overlap/numeric_equals), pattern (regex), json_path+expected (json_path_equals), min and/or max (length_bounds/numeric_bounds); valid_json takes no extra keys. target_path is required when target is json_path; a target_path sent with no target sets…

輸入參數id必填nametag_namesinstructionmetric_typecheck_configrubric_bands

metrics_delete

Delete a metric

輸入參數id必填

metrics_suggest_variants

Ask the model to rewrite the metric's judge instruction in N variants targeted at the recent disagreements. Each variant is saved as a draft MetricVersion with source="suggestion". Returns the persisted drafts. Stripe-metering hooks fire via ActiveSupport::Notifications under completion_kit.judge_suggestion.generated.

輸入參數countmodelmetric_id必填

metric_groups_list

List all metric groups

無需輸入參數。

metric_groups_get

Get a metric group by ID

輸入參數id必填

metric_groups_create

Create a metric group

輸入參數name必填tag_namesmetric_idsdescription

metric_groups_update

Update a metric group

輸入參數id必填nametag_namesmetric_idsdescription

metric_groups_delete

Delete a metric group

輸入參數id必填

metric_versions_list

List every MetricVersion (drafts + published) for a metric, newest first. Each row carries version_number, state, source, current flag, and timestamps.

輸入參數metric_id必填

metric_versions_publish

Publish a MetricVersion as the live version of its metric. Works for both 'draft → published' and 'revert to an older published version → current'. Transactionally flips current, demotes peers, and writes the version's instruction + rubric_bands back onto the metric so the judge grades against it.

輸入參數metric_version_id必填

metric_versions_dismiss

Destroy a draft MetricVersion (use for either source: 'edit' or source: 'suggestion'). Published versions are refused. To demote a published version, publish a different one as current instead.

輸入參數metric_version_id必填

provider_credentials_list

List all provider credentials (API keys are not exposed)

無需輸入參數。

provider_credentials_get

Get a provider credential by ID (API key is not exposed)

輸入參數id必填

provider_credentials_create

Create a provider credential

輸入參數api_key必填provider必填api_versionapi_endpoint

provider_credentials_update

Update a provider credential. Changing provider or api_endpoint on a credential with a stored key requires api_key in the same call, so a stored key never moves to a new provider or endpoint.

輸入參數id必填api_keyproviderapi_versionapi_endpoint

provider_credentials_delete

Delete a provider credential

輸入參數id必填

tags_list

List all tags

無需輸入參數。

tags_get

Get a tag by ID

輸入參數id必填

tags_create

Create a tag. Color is auto-assigned.

輸入參數name必填

tags_update

Rename a tag.

輸入參數id必填name

tags_delete

Delete a tag. Removes the tag from every linked metric, prompt, run, and dataset.

輸入參數id必填

agreements_list

List agreements. Filter by run_id, response_id, metric_id, or created_by.

輸入參數run_idmetric_idcreated_byresponse_id

agreements_create

Upsert an agreement for (run, response, metric, created_by). Verdict is one of agree, disagree, borderline. corrected_score (1..5) is required when verdict is 'disagree'.

輸入參數noterun_id必填verdict必填metric_id必填created_byresponse_id必填corrected_score

judges_replay

Create a scoring run for the current judge over a dataset's existing outputs (wraps runs_create with prompt_id omitted and output_column supplied). This only sets up the run; call runs_generate to actually re-judge the outputs so you can compare against human verdicts.

輸入參數name必填metric_id必填dataset_id必填judge_model必填output_column

judges_compare

Compare two versions of one metric's agreement stats side by side. Requires metric_id, metric_version_a_id, and metric_version_b_id (both versions must belong to that metric). Unavailable for check metrics.

輸入參數metric_id必填metric_version_a_id必填metric_version_b_id必填

promptfoo_import

Import a promptfooconfig.yaml. Creates a prompt, a dataset from the test vars, and metrics from the assert blocks (llm-rubric/g-eval become judge metrics; contains/equals/regex/is-json become deterministic check metrics). Returns a summary of what mapped and what was skipped and why; nothing is dropped silently.

輸入參數config必填

usage_get

Get this organization's plan usage and limits for the current billing period: runs and prompt fetches used, their limits, how many remain, and when the period resets. Call this to pre-check quota before starting runs. Runs are hard-blocked once the run limit is reached (with a small grace band), so a run over the limit will fail with run_limit_reached.

無需輸入參數。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

這個評分如何計算