Corpus
mb corpus (alias: mb corpora) manages the source data behind benchmark generation — a document collection for search benchmarks, or a tool-definition collection for tool-calling benchmarks.
# Create a docs corpus from a file (uploads and waits for processing)
# Supported formats: .tgz / .tar.gz, .zip, .parquet
mb corpus create "My Corpus" --file data.tgz --type docs
mb corpus create "My Corpus" --file data.zip --type docs
# Create a Parquet corpus with custom column names
# By default, the system expects columns named 'id' and 'content'
# Use these flags to specify different column names in your Parquet file:
mb corpus create "My Dataset" --file data.parquet \
--id-column document_id \
--content-column text \
--metadata-columns author,date,source
# Create a tools corpus from an MCP-formatted JSON file, or a zip/tgz archive of JSON files
mb corpus create "My Tools" --file tools.json --type tools
mb corpus create "My Tools" --file tools.zip --type tools
# List, get, update, delete
mb corpus list [--status ready] [--search "query"] [--sort created_at] [--order desc]
mb corpus get <id>
mb corpus update <id> --name "New Name"
mb corpus delete <id>
# Download corpus raw file (format matches the original upload — zip, tgz, parquet, etc.)
# Use mb corpus get <id> to inspect the file_name field and know the original extension.
mb corpus download <id> -o corpus.zip
# Wait for corpus to become ready
mb corpus wait <id> --timeout 600
mb corpus create uploads and, unless --no-wait is set, polls until the
corpus reaches ready or failed — see Polling and Waiting.
See List Filtering for the flags shared by every
list command.
Next steps
- Use a corpus with Benchmark create to generate a benchmark.
- Prefer a UI-driven workflow instead? See the UI Guide: Corpora.