document-processing
Guides OWL DocumentProcessingToolkit workflows for local files, web pages, structured data, images, spreadsheets, archives, and optional extraction services.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- document-processing
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides OWL DocumentProcessingToolkit workflows for local files, web pages, structured data, images, spreadsheets, archives, and optional extraction services.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md2.9 KB
- 参考文档references/data-and-remote-inputs.md2.4 KB
- 参考文档references/troubleshooting.md2.5 KB
- 脚本scripts/probe_document_input.py2.5 KB
03 SKILL.md 正文
OWL Document Processing
Use this route when OWL must extract content from a local path or URL before a worker reasons over it. The route distinguishes deterministic local handling from model-backed, browser-backed, credentialed, or networked extraction.
Workflow
- Run probe_document_input.py against the path or URL. It never opens a URL and reports likely prerequisites.
- For local JSON, JSONL, JSON-LD, XML, or Python files, validate encoding and size first. Preserve structured output when the caller needs machine-readable values; do not assume every parser returns Markdown.
- Construct
DocumentProcessingToolkitwith a cache directory and an explicit model when the caller has a suitable model backend. See api-reference.md for signatures and data-and-remote-inputs.md for local/remote routing. In the current CAMEL runtime, omitting the model can cause the image sub-tool to construct a default provider backend and demandOPENAI_API_KEY, even for a later local non-image path. - Call
extract_document_content(document_path)and inspect the boolean success value before using the content. Route Excel to CAMEL's Excel toolkit and images to the image-analysis toolkit rather than treating their output as plain text. - For webpages, expect the Firecrawl path when
FIRECRAWL_API_KEYis set; otherwise the implementation falls back to Crawl4AI. Treat both as network/browser operations and check the returned text for an empty-content or error message. - For ZIP input, use an isolated cache directory and inspect the returned file list. Do not extract untrusted archives into a project or system directory.
Boundaries
This sub-skill documents the document surface, not model/provider assembly. Read workforce-workflows for provider credentials and worker tool assignment. Read gaia-evaluation for benchmark attachment semantics. Read troubleshooting.md before retrying a parser, network, or credential failure.
Output contract
The public method returns a two-item tuple (success, content). A false result
is an operational failure, not an empty successful document. Local JSON/Python
handling is deterministic; other formats may depend on parser packages,
external binaries, model capabilities, network services, or content type
probes. Do not promise lossless extraction from arbitrary PDFs, office files,
or JavaScript-rendered pages.
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).