AGENT SKILL

chonkie

Use Chonkie for text/document chunking, pipelines, embeddings, CLI/API serving, and storage integrations.

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

01 前言 Front Matter

name
chonkie
license
MIT
metadata
{ "disco-role": "operating" }
description
Use Chonkie for text/document chunking, pipelines, embeddings, CLI/API serving, and storage integrations.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Chonkie repo skill

Use this skill when a task involves the chonkie Python package: chunking text/documents, building local processing pipelines, choosing optional embedding/model/provider integrations, operating the CLI/API/cloud wrappers, or exporting chunks to files and vector stores.

Start here

  1. Confirm Chonkie is installed and importable:

    import chonkie
    print(chonkie.__version__)
    
  2. If the environment or optional extras are unclear, run:

    python scripts/check_chonkie_environment.py --help
    python scripts/check_chonkie_environment.py --json
    
  3. Route the task to the closest sub-skill. Prefer deterministic local workflows unless the user explicitly asks for model downloads, provider APIs, cloud calls, or datastore writes.

Sub-skill routes

  • sub-skills/chunking-and-types/ — local chunker selection and chunk/type contracts: TokenChunker, SentenceChunker, RecursiveChunker, FastChunker, TableChunker, CodeChunker, optional model-dependent chunkers, tokenizers, recursive rules, and Chunk/markdown/code/table objects.
  • sub-skills/pipelines-and-processing/ — Pipeline workflows, CHOMP ordering, file fetching, chefs, local document processing, overlap/embedding refineries, and local JSON/dataset export from pipelines.
  • sub-skills/embeddings-and-generative/ — embeddings, provider wrappers, EmbeddingsRefinery, semantic/late/neural/slumber chunking, genies, optional dependency/model-cache/API-key decisions, and deterministic fallbacks.
  • sub-skills/interfaces-and-deployment/ — chonkie CLI commands, local FastAPI API schemas/server, Chonkie Cloud wrappers, logging/config, API keys, and deployment/serving guidance.
  • sub-skills/integrations-and-storage/ — JSONPorter, DatasetsPorter, vector/datastore handshakes, dependency probes, credential/service gates, and safe no-live-write storage planning.

Shared references

  • references/package-overview.md — package surface map, install extras, public entry points, and verified support boundaries.
  • references/troubleshooting.md — cross-cutting install/import, optional dependency, model download, credentials, logging, CLI/API, and service safety issues.
  • references/repo-provenance.md — source snapshot used to produce this skill; read before deciding whether to refresh.
  • references/repo-routing-metadata.json — structured router metadata consumed by repo-skill import tooling.

Safe defaults for future agents

  • For local chunking, start with RecursiveChunker(tokenizer="character" or "word", chunk_size=...) before model-dependent chunkers.
  • For pipelines, use Pipeline().process_with("text").chunk_with("recursive", ...) or a fetch_from("file", ...) pipeline before adding optional refineries, exporters, or storage.
  • For CLI examples, specify --chunker recursive, --chunker token, or --chunker sentence unless semantic/model extras are known to be installed.
  • For cloud/provider/vector-store tasks, do not make live network calls or writes until the user has explicitly provided credentials, endpoint/service scope, and permission to use them.
  • Treat optional extras (semantic, st, neural, openai, api, handshakes, etc.) as capability gates, not as evidence that the user's current environment is ready.

Import policy for this generated candidate

This production run was requested as not import. The runtime skill tree can be verified, but do not import it into the live managed repo-skill library unless a later user explicitly asks for import/export.

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