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-10-08
- Stars
- ★ 11
- Forks
- 3
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 资源文件 3
- 参考文档references/api-reference.md2.9 KB
- 参考文档references/data-and-remote-inputs.md2.4 KB
- 参考文档references/troubleshooting.md2.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
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.