微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📄

智能文档问答,一键提取答案

All Documents QA · v1.0.0
办公 安全 B 级 作者 anand2426 公开目录收录
954 下载 0 安装 3.5k 收藏 14 浏览

简介

基于上传文档(PDF、DOCX、TXT、XLSX)智能问答,支持单文件或整文件夹批量解析,需依赖额外PDF阅读组件。

原始描述

Answers questions based on the content of uploaded documents (PDF, DOCX, TXT), supporting individual files or entire folders.

通过你的 Agent 添加

安装目录:document-qa/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/all-documents-qa/
Codex CLI~/.codex/skills/all-documents-qa/
DeepSeek Harness~/.agents/skills/all-documents-qa/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: document-qa description: "Answers questions based on the content of uploaded documents (PDF, DOCX, TXT), supporting individual files or entire folders."

Document Q&A Skill

This skill allows you to upload documents (PDF, DOCX, TXT) and ask questions about their content.

How to Use

To use this skill, run the run_qa.py script with the path to your document or folder and your question. The skill will extract text from supported files (PDF, DOCX, TXT) and provide it as context for answering your question.

Command: python ~/.openclaw/workspace/skills/document-qa/scripts/run_qa.py "<path_to_file_or_folder>" "<Your question>"

Examples:

  • To ask about a single PDF file: python ~/.openclaw/workspace/skills/document-qa/scripts/run_qa.py "C:\Users\anandraj\.openclaw\workspace\my_docs\report.pdf" "What are the key findings?"
  • To ask about documents in a folder: python ~/.openclaw/workspace/skills/document-qa/scripts/run_qa.py "C:\Users\anandraj\.openclaw\workspace\project_docs" "Summarize the project goals."

The system will extract all relevant text and present it along with your question, allowing me to formulate an answer based on the provided content.

Supported Document Types

  • PDF (.pdf) (Requires 'iyeque-pdf-reader-1.1.0' skill installed)
  • Microsoft Word (.docx)
  • Plain Text (.txt)
  • Microsoft Excel (.xlsx)

Note:

  • For PDF support, ensure the iyeque-pdf-reader-1.1.0 skill is installed in your workspace.
  • For Excel support, you might need to install the pandas and openpyxl libraries if they are not already installed in your environment: pip install pandas openpyxl

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

document-processingqa-systempdfdocxexcellocal-analysisbatch-processing

同类 Skill