360 Secure SkillHub
360 安全技能中心

All Documents QA

该技能通过 run_qa.py 脚本接收文档路径或文件夹路径与用户问题,先由 Python 脚本抽取 PDF、DOCX、TXT、XLSX 文本作为上下文,再由模型据此作答。PDF 解析依赖外部 pdf reader 技能,Excel 解析需要 pandas 与 openpyxl。

分类:知识
anand2426
anand2426
热度 44.65
最近更新 2026-05-11 17:28:04

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add anand2426/document-qa
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
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