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
- 参考文档references/package-overview.md5.8 KB
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json496 B
- 参考文档references/troubleshooting.md5.8 KB
- 脚本scripts/check_chonkie_environment.py8.5 KB
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
-
Confirm Chonkie is installed and importable:
import chonkie print(chonkie.__version__) -
If the environment or optional extras are unclear, run:
python scripts/check_chonkie_environment.py --help python scripts/check_chonkie_environment.py --json -
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, andChunk/markdown/code/table objects.sub-skills/pipelines-and-processing/—Pipelineworkflows, 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/—chonkieCLI 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 afetch_from("file", ...)pipeline before adding optional refineries, exporters, or storage. - For CLI examples, specify
--chunker recursive,--chunker token, or--chunker sentenceunless 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
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).