microsoft/benchmark-qed/benchmark-qed-setup

Claude Code and agent skill by microsoft/benchmark-qed

Trust tier 4
  • vendor
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Initialize and configure benchmark-qed workspaces for RAG benchmarking. Use when: setting up a new benchmarking project, initializing config files for question generation or evaluation, downloading sample datasets, or modifying benchmark-qed settings.yaml configuration. Also use when the user mentions "benchmark-qed config", workspace setup, or needs to prepare a benchmarking environment — even if they don't say "setup" explicitly.

Install

npx vskill@latest install microsoft/benchmark-qed/benchmark-qed-setup

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as microsoft/benchmark-qed/benchmark-qed-setup.

Benchmark-QED Workspace Setup

Initialize workspaces, generate configuration files, download datasets, and manage settings for the benchmark-qed RAG benchmarking tool.

Prerequisites

benchmark-qed requires Python 3.11+ and uv. Run commands with uvx to avoid installing globally:

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed <command>

Pin a specific version for reproducibility:

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed@v1.2.3" benchmark-qed <command>

If uvx is unavailable, install uv first:

bash
pip install uv && uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed <command>

Procedure

Step 1 — Initialize a Workspace

Option A (Recommended): Interactive wizard

The interactive wizard guides you through configuration with sensible defaults:

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed init <root_directory>

This walks through:

  • Config type selection (autoq, autoe_pairwise, autoe_differential_pairwise, autoe_reference, autoe_assertion)
  • LLM provider selection with Azure-specific prompts (endpoint, API version)
  • Section-by-section customization (press Enter to accept defaults)
  • Automatic YAML validation before writing

Option B: Non-interactive (template-based)

Generate a static template and edit manually:

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed config init <config_type> <root_directory>

Config types (pick one):

TypePurpose
autoqQuestion generation (includes all prompt templates)
autoe_pairwisePairwise comparison evaluation
autoe_differential_pairwiseTwo-stage extract-and-judge pairwise evaluation
autoe_referenceReference-based scoring
autoe_assertionAssertion-based scoring

Example:

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed config init autoq ./my_workspace

Storage options for config init:

OptionDescription
--storage-type / -slocal (default) or blob. When blob, storage config sections are scaffolded as active YAML (not commented out).
--container-namePre-fill the blob container name in generated storage config.
--account-urlPre-fill the account URL (managed-identity auth) in generated storage config.
--connection-stringPre-fill the connection string in generated storage config.
--base-dirPre-fill a base prefix path within the container.

When --storage-type blob is combined with --account-url or --connection-string, the generated config and prompt files are also uploaded directly to the blob container.

Example (blob):

bash
uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed config init autoq ./my_workspace \
--storage-type blob \
--container-name my-datasets \
--account-url https://myaccount.blob.core.windows.net \
--base-dir experiments/run1

This creates:

root/
├── .env # API key placeholder
├── input/ # Place your data here
├── settings.yaml # Main configuration file
└── prompts/ # LLM prompt templates
Step 2 — Download Sample Data (Optional)

Download sample datasets for testing. This command has an interactive confirmation prompt with no --yes flag — use one of these approaches to avoid hanging:

Bash/Linux/macOS:

bash
echo y | uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed data download <dataset> <output_dir>

PowerShell:

powershell
"y" | uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed data download <dataset> <output_dir>

Available datasets: AP_news, podcast, example_answers

Storage options for data download:

OptionDescription
--storage-typeSet to blob to upload the dataset to Azure Blob Storage instead of extracting locally.
--container-nameThe blob container name.
--account-urlAzure storage account URL (managed-identity auth).
--connection-stringAzure storage connection string (alternative to --account-url).
--base-dirBase prefix in blob storage. Files are stored as {base_dir}/{output_dir}/.

Example (download to blob):

bash
echo y | uvx --from "git+https://github.com/microsoft/benchmark-qed" benchmark-qed data download AP_news datasets \
--storage-type blob \
--container-name my-datasets \
--account-url https://myaccount.blob.core.windows.net
Step 3 — Gather Configuration Choices from the User

Before writing any values into settings.yaml, prompt the user with `ask_user` to collect the LLM / auth / endpoint settings. Do not guess — these decisions are environment-specific and getting them wrong wastes downstream LLM calls. Use enum/boolean fields whenever possible so the user picks from a known set rather than typing free-form text.

Ask in a single `ask_user` form (split into two if the workflow is autoq, since autoq also needs an embedding model). Tailor the follow-up fields based on the provider/auth choice — if the first answer reveals an Azure provider, ask the Azure-only fields in a second form.

LLM (chat) fields to collect
FieldTypeOptions / examplesNotes
llm_providerenumopenai.chat, azure.openai.chat, azure.inference.chatSee provider table in references/config-reference.md.
modelstringgpt-4.1, gpt-4o, o3-mini, an Azure deployment nameFor Azure providers this is the deployment name, not the base model id.
auth_typeenumapi_key (default), azure_managed_identityazure_managed_identity is only valid for azure.* providers.
api_key_env_varstringOPENAI_API_KEY (default), AZURE_OPENAI_API_KEY, …Only ask when auth_type=api_key. The skill writes ${VAR_NAME} into YAML and adds the variable to .env.
azure_endpointstring (uri)e.g. https://my-resource.openai.azure.com/Only ask for azure.* providers.
api_versionstringe.g. 2024-06-01Only ask for azure.openai.* providers.
concurrent_requestsintegerdefault 4Optional; offer the default.
retryobjectdefaults to exponential_backoff/6 retriesOptional. The config init scaffold now writes a default retry: block; offer to keep the defaults unless the user has a reason to change them. See references/config-reference.md for fields.
Embedding fields to collect (autoq only)

Ask the same shape of questions for the embedding model:

FieldTypeNotes
embedding_providerenum (openai.embedding, azure.openai.embedding, azure.inference.embedding)Must be an embedding provider.
embedding_modelstringe.g. text-embedding-3-large, or an Azure deployment name.
Reuse auth_type / api_key_env_var / azure_endpoint / api_version from the chat answers unless the user wants different values — ask a yes/no reuse_chat_auth boolean first.
Input data fields (autoq only)
FieldTypeNotes
dataset_pathstringPath to CSV/JSON dataset, e.g. ./input/data.csv.
input_typeenum (csv, json)
text_columnstringColumn/key containing the text content.
Eval-config-specific fields (autoe_*)

Only ask the questions relevant to the chosen config_type:

  • autoe_pairwise: base.name + base.answer_base_path, plus a list of others (each with name and answer_base_path), question_sets, and whether to keep the default persistent SQLite cache_config or select json, memory, or none.
  • autoe_differential_pairwise: the same condition and question-set fields as

pairwise, plus whether to keep the default stage-aware SQLite cache. Explain that extraction and verdict entries are stored independently.

  • autoe_reference: reference.name + reference.answer_base_path, a list of generated conditions with name and answer_base_path, and whether to keep the default persistent SQLite cache_config or select another backend.
  • autoe_assertion: in single-RAG mode, generated.name +

generated.answer_base_path, assertions.assertions_path, and whether to keep the default persistent SQLite cache_config or select json, memory, or none. Explain that this cache does not apply to multi-RAG or hierarchical scoring. In multi-RAG mode (rag_methods provided), ask for input_dir, output_dir, rag_methods list, and question_sets.

Storage fields (all config types, optional)

Ask the user if they want to use Azure Blob Storage for input/output. If yes, collect:

FieldTypeNotes
use_blob_storagebooleanWhether to configure cloud storage.
storage_container_namestringAzure Blob container name (e.g. my-datasets).
storage_auth_methodenum (connection_string, managed_identity)How to authenticate to Azure.
storage_connection_string_env_varstringEnv var name for connection string (default: AZURE_STORAGE_CONNECTION_STRING). Only when storage_auth_method=connection_string.
storage_account_urlstring (uri)Storage account URL. Only when storage_auth_method=managed_identity.
storage_base_dirstringOptional prefix path within the container.
separate_output_containerbooleanWhether output uses a different container than input.

If storage is enabled, write the appropriate input.storage, input_storage, and/or output_storage blocks into settings.yaml.

If the user declines a field, fall back to the documented default and call out the assumption in your response.

Step 4 — Apply the Answers

Use the answers from Step 3 to edit settings.yaml and .env directly:

yaml
# LLM configuration (template — substitute values from ask_user answers)
chat_model:
model: <model from ask_user>
llm_provider: <llm_provider from ask_user>
auth_type: <auth_type from ask_user>
api_key: ${<api_key_env_var>} # only when auth_type=api_key
concurrent_requests: <concurrent_requests>
init_args: # only for azure.* providers
azure_endpoint: <azure_endpoint>
api_version: "<api_version>" # azure.openai.* only
retry: # scaffolded by `config init`; keep unless customized
type: exponential_backoff
max_retries: 6
base_delay: 2.0
max_delay: 30.0
jitter: true
# Input data (autoq only)
input:
dataset_path: <dataset_path>
input_type: <input_type>
text_column: <text_column>

Rules when writing the YAML:

  • Omit api_key entirely when auth_type=azure_managed_identity — do not leave ${OPENAI_API_KEY} in place.
  • Omit init_args for non-Azure providers.
  • Quote api_version (it would otherwise be parsed as a date).
  • For azure_managed_identity, do not add anything to .env for that key.
  • For api_key auth, append <api_key_env_var>=<placeholder> to .env if the variable is missing, and tell the user to replace the placeholder with their real key before running any command.

For the full set of optional fields, read references/config-reference.md.

Step 5 — Review Settings with the User

After writing settings.yaml, show the user the generated configuration and ask if they want to customize anything. This is critical — the generated config uses sensible defaults, but users often need to tune dataset-specific or environment-specific values.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 26 Oct 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
91
Repository forks
18
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/benchmark-qed/benchmark-qed-setup/badge)](https://verified-skill.com/skills/microsoft/benchmark-qed/benchmark-qed-setup)

Something wrong with this skill or its page? Tell us.