AGENT SKILL

local-development

Local Marqo repository development, service operation, testing, Docker/Vespa/Triton prerequisites, Maven custom searcher build guidance, and contributor constraints.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
local-development
license
Apache 2.0
metadata
{ "repo": "marqo", "disco-role": "operating", "sub-skill-id": "local-development" }
description
Local Marqo repository development, service operation, testing, Docker/Vespa/Triton prerequisites, Maven custom searcher build guidance, and contributor constraints.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

local-development

Use this sub-skill when the task is about preparing a Marqo development environment, choosing local tests, planning service startup, diagnosing local Docker/Vespa/Triton/Redis/Zookeeper problems, building the Vespa custom searcher, or applying repository contribution rules.

Do not use this sub-skill for API payload semantics, index/search/model internals, or user-facing request examples beyond service/test setup:

  • Public route behavior, document/index/typeahead payloads → documents-and-api.
  • Index schemas, Vespa query generation, field-type semantics → index-and-vespa.
  • Search/ranking/filter/score semantics → search-and-ranking.
  • Inference schemas, model registry, model-management payloads → inference-and-models.

Required operating pattern

  1. Start from the relevant bundled reference:
    • Local services for service topology, environment variables, compose profiles, Vespa/API/Triton/MMC/MIOC plans, ports, and Java/Maven custom searcher build steps.
    • Testing for safe unit/integration/API-test command selection, working directories, PYTHONPATH, and service prerequisites.
    • Contributor guidance for maintainer rules, imports, exceptions, semi-structured changes, and test style.
    • Troubleshooting for failure-mode triage.
  2. Prefer safe planning before mutation. The bundled scripts print plans by default:
    • scripts/print_service_commands.py prints service/build/test command plans without running them.
    • scripts/select_tests.py maps changed files to a minimal test plan without running tests unless --run is explicitly passed.
  3. Before running any repository command, activate the intended Python environment and load the repository .env variables when present. Use Python 3.11 for Marqo services.
  4. For Marqo unit and integration tests, run from the Marqo component root with PYTHONPATH=./src. For API tests, run a Marqo API process first and terminate it after the test session.
  5. If HybridSearcher.java or Vespa custom searcher code changes, build the custom searcher with Maven and redeploy the Vespa application package before validating behavior against Vespa.
  6. Treat Docker/Vespa/API tests as service-mutating: they can create/delete indexes, start/stop containers, download images/models, and change local ports. Ask for explicit approval when the task has not already authorized service changes.

Quick safe helpers

From this sub-skill directory, print commands only:

python scripts/print_service_commands.py --plan all
python scripts/print_service_commands.py --plan local-api
python scripts/select_tests.py components/marqo/src/marqo/core/semi_structured_vespa_index/semi_structured_vespa_index.py

Only run selected safe unit tests when explicitly requested:

python scripts/select_tests.py --run components/marqo/src/marqo/core/semi_structured_vespa_index/semi_structured_vespa_index.py

The scripts never start or stop containers and never run service-backed tests.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351