marqo
Marqo AI-native search service workflows for HTTP APIs, indexes, Vespa schemas, search/ranking, inference/model services, and local repository development.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- marqo
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Marqo AI-native search service workflows for HTTP APIs, indexes, Vespa schemas, search/ranking, inference/model services, and local repository development.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-map.md5.7 KB
- 参考文档references/repo-provenance.md2.9 KB
- 参考文档references/repo-routing-metadata.json506 B
- 参考文档references/troubleshooting.md5.3 KB
- 脚本scripts/check_marqo_environment.py5.4 KB
03 SKILL.md 正文
Marqo
Use this repo skill when a task involves Marqo: AI-native search APIs, index/document/search workflows, Vespa-backed schema/query behavior, inference/model-management services, or Marqo repository development and testing.
Marqo is a multi-component Python/FastAPI service repository. Its main public surface is the Marqo API service, with supporting common model registry, inference orchestrator, model-management service, Vespa application package, and Docker/compose runtime.
First checks
- Read references/repo-provenance.md before relying on this skill for a checkout whose commit or package metadata may differ.
- Read references/package-map.md for component/package/import names, important routes, and environment variables.
- Use scripts/check_marqo_environment.py for a safe import/version/route/backend probe. It does not start services or download models.
- Use references/troubleshooting.md for cross-cutting install/import/service/backend failures before opening a narrower sub-skill.
Route by task
| User task | Open |
|---|---|
| Health/index/document/embed/recommend/typeahead HTTP requests, request/response/error mapping, dry-run HTTP smoke plans | sub-skills/documents-and-api/ |
| Index settings, structured vs semi-structured vs legacy unstructured models, field validation, Vespa schema/query generation, local Vespa app/custom searcher guidance | sub-skills/index-and-vespa/ |
| Tensor/lexical/hybrid search payloads, filters, searchable attributes, score modifiers, facets, collapse, recency, sort, relevance cutoff, recommend ranking choices | sub-skills/search-and-ranking/ |
Model registry, /vectorise, preprocessing schemas, random/HF/OpenCLIP pipelines, inference cache, Triton/model-management load/unload, CUDA/backend checks |
sub-skills/inference-and-models/ |
| Local development, Docker/Vespa/Triton/Redis/Zookeeper services, Maven custom searcher build, test selection, contributor rules | sub-skills/local-development/ |
Operating rules
- Prefer the narrowest sub-skill. Marqo search requests often span API, index schema, search ranking, and model inference; route each decision to its owning sub-skill instead of guessing.
- Treat service-mutating actions as explicit decisions. Bundled scripts default to printing or checking only; starting/stopping containers, deleting indexes, deploying Vespa apps, loading models, and sending writes to Marqo require user approval or an explicit live-service request.
- For no-download or no-service checks, prefer
random/*model properties, safe import probes, and payload builders before using OpenCLIP/HF model downloads or Triton. - When editing source, follow the repository rule to make changes directly in
semi_structured_vespa_indexeven if code inherits fromstructured_vespa_index. - Core code should raise
marqo.core.exceptionsormarqo.exceptions, not API-layer exceptions; API mapping belongs in the API layer. - Use Python 3.11 for package/runtime checks. Unit and integration tests generally require component-root working directories and
PYTHONPATH=./src.
Minimal public install/import check
For a development checkout, install only the component(s) needed for the task rather than every dev/perf requirement group. For package-use checks, the important import names are:
import marqo
import marqo_common
import inference_orchestrator
import model_management
For an offline safety probe from a prepared environment:
python scripts/check_marqo_environment.py --json
If imports fail, open references/troubleshooting.md and then route to sub-skills/local-development/ for install/test setup or sub-skills/inference-and-models/ for optional model/backend dependencies.
Verification scope
This skill includes safe script checks and static/offline workflows. Service-backed API, Vespa, Triton, and model-download checks are intentionally optional and must be selected explicitly because they can start containers, mutate indexes, deploy application packages, or contact external model/object stores.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).