AGENT SKILL

interfaces-and-deployment

Use Chonkie's CLI, local FastAPI API, Cloud wrappers, logging, and deployment surfaces safely.

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

01 前言 Front Matter

name
interfaces-and-deployment
license
MIT
metadata
{ "disco-role": "operating" }
description
Use Chonkie's CLI, local FastAPI API, Cloud wrappers, logging, and deployment surfaces safely.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Interfaces and Deployment

Use this sub-skill when the task is about Chonkie's command line interface, the local self-hosted FastAPI API, Chonkie Cloud wrappers, logging/configuration, or serving/deployment. It is optimized for safe local diagnostics and for constructing correct commands or HTTP/API payloads without starting long-lived services or using credentials by default.

Route first

  • For Python Pipeline().fetch_from().process_with().chunk_with().refine_with().run() workflows, read ../pipelines-and-processing/.
  • For deterministic local chunker behavior, chunk object fields, tokenizer details, or fallback chunker choice, read ../chunking-and-types/.
  • For model/provider embedding keys and third-party generative/provider credentials, read ../embeddings-and-generative/.
  • For vector database services, handshakes, and storage credentials, read ../integrations-and-storage/.

Read the bundled references

  • references/cli-reference.md for installed chonkie commands, flags, parameter parsing, and safe CLI patterns.
  • references/api-and-cloud-reference.md for local FastAPI routes, request schemas, environment variables, cloud wrapper classes, and deployment guidance.
  • references/troubleshooting.md for CLI/API/cloud/logging/deployment failure modes and routing decisions.

Default operating posture

  1. Prefer deterministic local CLI examples (--chunker recursive, --chunker token, or --chunker sentence) unless the user explicitly selected semantic/model-backed chunking.
  2. Treat chonkie serve and uvicorn chonkie.api.main:app as long-running commands: explain or run them only when the user asks for a server, and keep smoke checks to imports/help/schema inspection.
  3. Treat Chonkie Cloud as optional external API usage. Do not instantiate cloud clients in diagnostics unless CHONKIE_API_KEY or an explicit api_key is intentionally provided.
  4. Keep local API credentials separate from provider credentials: the OSS FastAPI server has no built-in auth; CHONKIE_API_KEY is for Chonkie Cloud; embedding provider keys belong to ../embeddings-and-generative/.
  5. For deployment, distill the Docker/compose behavior into guidance and environment requirements; do not require users to read or copy any source checkout file.

Safe smoke

Run the bundled smoke when validating an installed Chonkie environment:

python scripts/cli_api_smoke.py

If the chonkie console command is intentionally unavailable but Python imports should still be checked:

python scripts/cli_api_smoke.py --skip-cli

The smoke only invokes CLI help, imports/inspects the FastAPI app and schemas, and inspects cloud class signatures without starting a server or using credentials.

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