volcengine/searchcli/vs-search-tuning
Claude Code and agent skill by volcengine/searchcli
- community
Checking that the SKILL.md file is still in the repository.
Use when a user asks an agent to evaluate or tune text search similarity for an existing Viking AI Search application and dataset.
Install
npx vskill@latest install volcengine/searchcli/vs-search-tuningSKILL.md
Viking Search Tuning
When to Use
Use this skill when the user wants an external agent to evaluate and tune text search similarity for an existing AI Search application and dataset.
This first version is for similarity tuning. It defaults to text-query/text-item judging, fixes mode=UserDefined, and tunes the user-defined recall strategy, recall weights, keyword match ratio, and max retrieved count. It can optionally use text+image LLM judging when visual relevance matters; image fields are taken only from GetAppDataConfig.ImageIndexFields. It does not tune rerank, personalization, hotness, boost/bury, sort rules, serving controls, or business operating rules.
Version Check
Before starting this skill workflow, run vs version check --json. Continue only when status is up-to-date. If status is update-available, stop and tell the user to update the cloned vs repository, then run git pull --ff-only, bash ./scripts/install.sh, and bash ./scripts/install-skills.sh all --target auto --force (PowerShell: scripts/install.ps1 and scripts/install-skills.ps1). If the status is unknown, stop and report that the CLI version could not be verified.
Preconditions
- an
application-idis available - a
dataset-idis preferred; if omitted, the CLI can try to infer a unique search dataset from the application - Viking auth is configured with
vs auth status - LLM config is available through
vs llm login,vs llm import-env, orVIKING_LLM_BASE_URL/VIKING_LLM_API_KEY/VIKING_LLM_MODELwhen generating queries or using LLM relevance labels - a query file with
sourceItemIdscan be evaluated with--label-source source-itemfor a fast first-pass silver-label run without LLM relevance judging - the user understands that LLM relevance labels are silver labels and should be reviewed before high-risk production changes
Commands
llm login/llm import-env/llm status: configure and verify OpenAI-compatible LLM credentials without exposing API keys in chat or plain configsearch tune llm-check: verify CLI-managed LLM configurationsearch tune validate: validate a query set locally before planning or running; reports schema issues, duplicate ids/text, sourceItemIds coverage, query type skew, and a label-source recommendationsearch tune query-generate: generate a reusable synthetic query set from paged dataset samples with batched concurrent LLM calls when the user has no query set; add--retrievable-field-onlywhen the user wants generation constrained to textIndexFieldsfrom app dataset config, excludingImageIndexFieldssearch tune plan: show query source, candidate strategies, estimated requests/labels, parameter coverage, source-item coverage, warnings, and suggested first-pass size before runningsearch tune run: generate or load queries, run candidate search strategies, label top results, compute metrics, and write artifacts; supports--label-source llm|source-item|auto,--judge-input text|text-image,--max-judge-images,--llm-retries,--max-label-failure-rate, and--verbose; use--resume-run-id <run-id>to continue an interrupted runsearch tune report: read a previous tuning reportsearch tune compare: compare completed tuning runs with--run-ids, or compare existing scenes online with--scene-ids --queriesusing source-item silver labelssearch tune apply: create a new candidate search scene from a completed tuning report recommendationapp status/doctor: verify app and local environment readiness
Workflow
- Ask the user whether they have a tuning query set. Good sources include online search logs, customer support query collections, or a manually curated representative set. If the user has one, use it with
--queries <file>. If not, say the CLI will generate synthetic queries from dataset samples and that those queries should be reviewed. - Check the local environment:
vs auth status --jsonvs doctor --jsonvs search tune llm-check --json
If LLM check fails and LLM query generation or LLM judging is needed, configure LLM first:
- interactive secure setup:
vs llm login - from existing terminal env:
vs llm import-env - verify secret source:
vs llm status --json
- Check that the application is ready:
vs app status --application-id <id> --json
- Confirm the tuning boundary with the user:
- text query similarity tuning
- similarity-only profile
- fixed
mode=UserDefined - tunes only
user_defined_recall_mode,dense_weight,text_weight,query_keyword_match_percent, andmax_retrieved_num - LLM judging defaults to
--judge-input text; use--judge-input text-imageonly when the user asks for image-aware relevance or the domain is strongly visual and image quality/content should affect relevance - no rerank, personalization, hotness, boost/bury, sort rules, serving controls, or business operating rules
- If the user has no query set, generate one first:
vs search tune query-generate --application-id <id> --dataset-id <dataset> --query-count 100 --sample-size 200 --query-batch-size 10 --llm-concurrency 100 --timeout-ms 120000 --json- if synthetic queries should only use configured text retrievable fields: add
--retrievable-field-only, which readsGetAppDataConfig.DataConfig.IndexFieldsand excludesImageIndexFields
Show the returned sampleQueries, typeCounts, requestedQueryCount, actualQueryCount, shortfall, and warnings to the user. If ok=false, do not continue to plan or run; retry with larger timeout/sample size or ask for a real query set. Use the returned queryFile only after the user accepts the query set for first-pass tuning.
- Validate the accepted query set before planning:
vs search tune validate --queries <file> --json
Summarize ok, validQueryCount, duplicateIdCount, sourceItemQueryCoverage, labelSourceRecommendation, and any blocking problems. If ok=false, fix or regenerate the query set before continuing. When a user provides --queries <file>, search tune plan and search tune run evaluate the whole file by default; pass --query-count <n> only when the user explicitly wants a smaller prefix.
- Run a plan before any expensive evaluation:
- with user queries:
vs search tune plan --application-id <id> --dataset-id <dataset> --queries <file> --profile similarity-only --json - with generated queries: use the
queryFilereturned byquery-generate
Summarize the estimated search requests, max pointwise LLM judgements, source-item coverage, suggested first-pass size, warnings, and parameter coverage.
- Run tuning only after the plan is acceptable:
- fast first pass when the query file has enough
sourceItemIds:vs search tune run --application-id <id> --dataset-id <dataset> --queries <file> --profile similarity-only --label-source source-item --search-concurrency 18 --timeout-ms 120000 --json - LLM judgement run:
vs search tune run --application-id <id> --dataset-id <dataset> --queries <file> --profile similarity-only --label-source llm --search-concurrency 18 --llm-concurrency 100 --llm-retries 1 --max-label-failure-rate 0.01 --timeout-ms 120000 - image-aware LLM judgement run, only when visual relevance is needed:
vs search tune run --application-id <id> --dataset-id <dataset> --queries <file> --profile similarity-only --label-source llm --judge-input text-image --max-judge-images 1 --search-concurrency 18 --llm-concurrency 100 --timeout-ms 120000 - with generated queries: use the
queryFilereturned byquery-generate
Use the command form above for first-pass tuning unless the user explicitly asks for a different evaluation scope. Search requests default to 18-way concurrency, and LLM judgements default to 100-way concurrency. LLM judging runs as a worker pool, so completed labels are checkpointed while slower LLM requests continue in their own worker slots.
- While a run is active, use the artifact paths from progress output if troubleshooting is needed:
run-state.json: current status, completed searches, labels, and resume metadatapartial-metrics.json: partial metrics from completed query/strategy pairsperformance-summary.json: elapsed time, search/LLM wall time, average and percentile latency, throughput, cache hits, label failures, and configured concurrencyrankings.jsonl,labels-used.jsonl, andlabel-failures.jsonl: completed rankings, labels used by the run, and tolerated/diagnostic label failures
If the process is interrupted, resume with vs search tune run --application-id <id> --resume-run-id <run-id>.
- Read and summarize the generated report:
vs search tune report --run-id <run-id> --json
- Explain the recommended strategy, metric deltas, parameter coverage, and risk notes. Treat the output as a recommendation.
- If the user asks to compare multiple completed runs or candidate scenes:
- completed runs:
vs search tune compare --run-ids <run_a,run_b> --json - online scene source-item compare:
vs search tune compare --application-id <id> --dataset-id <dataset> --scene-ids <scene_a,scene_b> --queries <file> --json
For scene compare, every query must include sourceItemIds; otherwise use search tune run with LLM labels and compare completed run IDs.
- If the user asks to materialize the recommendation as a candidate scene, inspect first:
vs search tune apply --application-id <id> --run-id <run-id> --dry-run --json
Explain unappliedRequestParams; query_keyword_match_percent is persisted as V2 TextSearchConfig.QueryKeywordMatchPercent, while remaining request-only params such as disable_personalize are not persisted in scene config.
- If the user accepts the dry-run payload, create a new candidate scene:
vs search tune apply --application-id <id> --run-id <run-id> --confirm-create-scene --json
Customer Environment Principle
- In customer environments, assume repository source code is unavailable.
- Execute tasks using only the installed skills, the packaged
vsCLI surface (--help, command output, and observed runtime behavior), and explicit user-provided information. - Do not rely on reading local repository source files, generated repo snapshots, or implementation details to decide runtime actions.
- If the installed CLI behavior conflicts with a skill, trust the installed CLI behavior first.
- If the skills and the packaged CLI still do not provide enough information to proceed safely, stop and ask the user instead of searching source code.
Constraints
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.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vs-search-tuning/SKILL.md
Popularity
- Repository stars
- 900
- Repository forks
- 24
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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
[](https://verified-skill.com/skills/volcengine/searchcli/vs-search-tuning)