據 AlphaMoat 統計,截至 2026-09,Mistral PDF OCR 累計下載 1,333 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,875 位,在「辦公效率」分類(435 個)中排名第 405 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 33 | 1202 | - | - |
| SkillHub ↗ | 159 | 1333 | - | — |
各平台的計數口徑不同,統計時間不一致。
可處理掃描件、轉換為 Markdown 或提取結構化欄位。文件會傳送到 Mistral,輸出應放在受控目錄;異常響應可能寫出目標目錄,且應固定 mistralai 版本。 需要 Python、MISTRAL_API_KEY 與經審核固定版本的 SDK。輸出檔名範圍限制修正並驗證前不寫入產物,僅選擇目錄不能消除問題;不確定欄位使用 null,查核擷取品質。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 1333 | — | - |
| 2026-08 | 1129 | +9.4% | - |
| 2026-07 | 1032 | +17.7% | - |
| 2026-06 | 877 | +9.5% | - |
| 2026-05 | 801 | — | - |
| 2026-03 | 615 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: extracting-mistral-ocr description: >- Extracts text, tables, and images from PDFs (including scanned PDFs) using the Mistral OCR API. Use when user asks to OCR a PDF/image, extract text from a PDF, parse a scanned document, convert a PDF to Markdown, or extract structured fields from a document. compatibility: >- Requires network access and a MISTRAL_API_KEY environment variable. Expects Python 3.9+ and the mistralai package. allowed-tools: "Read,Write,Bash(python:*)" metadata:
author: generated-by-chatgpt
version: 0.1.0
api: mistral
default-model: mistral-ocr-latest
---
# Mistral OCR PDF extraction
## Quick start (default)
Run the bundled script to OCR a local PDF and write Markdown + JSON outputs:
```bash
python {baseDir}/scripts/mistral_ocr_extract.py --input path/to/file.pdf --out out/ocr
```
Output directory layout:
- `combined.md` (all pages concatenated)
- `pages/page-000.md` (per-page markdown)
- `raw_response.json` (full OCR response)
- `images/` (decoded embedded images, if requested)
- `tables/` (separate tables, if requested)
## Workflow
1. **Pick input mode**
- **Local PDF** (most common): upload via Files API, then OCR via `file_id`.
- **Public URL**: OCR directly via `document_url`.
2. **Choose output fidelity** (defaults are safe for RAG)
- Keep `table_format=inline` unless the user explicitly wants tables split out.
- Set `--include-image-base64` when the user needs figures/diagrams extracted.
- Use `--extract-header/--extract-footer` if header/footer noise hurts downstream search.
3. **Run OCR**
- Use `scripts/mistral_ocr_extract.py` to produce a deterministic on-disk artefact set.
4. **(Optional) Structured extraction from the whole document**
- If the user wants fields (invoice totals, contract parties, etc.), provide an annotation prompt.
- The OCR API can return a document-level `document_annotation` in addition to page markdown.
Example:
```bash
python {baseDir}/scripts/mistral_ocr_extract.py \
--input invoice.pdf \
--out out/invoice \
--annotation-prompt "Extract supplier_name, invoice_number, invoice_date (ISO-8601), currency, total_amount. Return JSON." \
--annotation-format json_object
```
## Decision rules
- **If the PDF is local and not publicly accessible**, upload it (the script does this automatically).
- **If the PDF URL is private or requires authentication**, do not pass it as `document_url`; upload instead.
- **If output quality is critical**, prefer `table_format=html` for downstream parsing over brittle regex.
## Common failure modes
- **Missing `MISTRAL_API_KEY`**: set it in the environment before running.
- **URL OCR fails**: the URL likely is not publicly accessible; upload the file.
- **Large files**: upload supports large files, but very large PDFs may need page selection (`--pages`) or batch processing.
## References
- API + parameters: `references/mistral_ocr_api.md`
- Output mapping rules (placeholders to extracted images/tables): `references/output_mapping.md`
- Example annotation prompts for common document types: `references/annotation_prompts.md`
透過 MCP 在騰訊文件裡新建、編輯與管理線上文件的完整操作手冊。
在保留公式、格式和活頁簿結構的前提下建立、檢查或編輯 Excel 檔案。
處理 Word 與 DOCX 文件的作業指南,著重維持樣式、編號與版面。
透過命令列存取 Gmail、日曆、Drive、Contacts、Sheets 與 Docs。
PDF和圖片文字提取 將文件文字、表格與掃描頁識別整理為文字結果。
按主題與風格自動生成 PPT 檔案的技能。
透過 kdocs-cli 操作金山文件雲文件的官方技能。
用自然語言指令改 PDF 指定頁的小工具。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。