关于 Chat with PDF
这项技能用于针对 PDF 提问、生成摘要和提取细节,并通过页码与章节引用定位答案。它也支持比较多个文档。
主要功能
- 01PDF 问答
- 02生成不同详略程度的摘要
- 03提取指定数据
- 04跨文档比较
- 05答案附来源位置引用
适用场景
- 01审查合同条款与义务
- 02分析研究论文
- 03提取财务报告指标
- 04比较多份合同
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill chat-with-pdf安装后在 Claude Code 中输入/chat-with-pdf确认已加载。
详细介绍
与 PDF 对话
围绕 PDF 文档进行智能对话——提出问题、获取摘要并提取特定信息。
概述
此技能支持你:
- 提出有关 PDF 内容的问题
- 获取不同详细程度的摘要
- 提取特定数据
- 比较多个 PDF 中的信息
- 快速查找相关章节
使用方法
基本交互
- 分享或上传 PDF 文档
- 提出问题或请求
- 获取附有引文的上下文相关答案
问题类型
事实类问题
"What is the contract value mentioned in this document?"
"Who are the parties involved in this agreement?"
"What are the key dates mentioned?"
摘要
"Summarize this document in 3 bullet points"
"Give me an executive summary"
"What are the main topics covered?"
提取
"Extract all names and titles mentioned"
"List all financial figures in the document"
"Find all action items or deliverables"
分析
"What are the risks mentioned in this contract?"
"Are there any ambiguous terms?"
"What obligations does Party A have?"
输出格式
问答格式
**Question**: [Your question]
**Answer**: [Direct answer to your question]
**Source**: Page [X], Section [Y]
> "[Relevant quote from document]"
**Confidence**: [High/Medium/Low]
摘要格式
## Document Summary
**Type**: [Contract/Report/Manual/etc.]
**Pages**: [X]
**Date**: [If mentioned]
### Key Points
1. [Main point 1]
2. [Main point 2]
3. [Main point 3]
### Important Details
- [Detail 1]
- [Detail 2]
提取格式
## Extracted Information
### [Category 1]
| Item | Value | Location |
|------|-------|----------|
| [Item 1] | [Value] | Page X |
| [Item 2] | [Value] | Page Y |
### [Category 2]
...
最佳实践
如何获得更好的答案
- 具体说明:“终止条款是什么?”比“介绍一下这份合同”更好
- 引用章节:“第 5.2 节关于责任是怎么说的?”
- 提出后续问题:在之前的答案基础上继续提问,以深入了解
如何更好地提取信息
- 指定格式:“提取为表格”或“列为项目符号”
- 列出字段:“提取:姓名、日期、金额、描述”
- 设定条件:“仅提取超过 10,000 美元的金额”
如何获得更好的摘要
- 指定长度:“用 100 字概述”或“列出 3 个项目符号”
- 聚焦领域:“仅总结财务条款”
- 指定受众:“为法律团队总结”或“为高管总结”
示例工作流
合同审查
1. "What type of contract is this?"
2. "Who are the parties and what are their roles?"
3. "What are the key obligations for each party?"
4. "What is the term and renewal process?"
5. "What are the termination conditions?"
6. "Are there any unusual or concerning clauses?"
研究论文分析
1. "What is the main thesis or hypothesis?"
2. "What methodology was used?"
3. "What are the key findings?"
4. "What are the limitations mentioned?"
5. "What future research do they suggest?"
财务报告
1. "What is the total revenue reported?"
2. "How does this compare to last year?"
3. "What are the main expense categories?"
4. "What guidance is given for next quarter?"
5. "Extract all financial metrics into a table"
多文档支持
处理多个 PDF 时:
"Compare the terms in Contract A vs Contract B"
"Which document mentions [topic]?"
"Create a summary table comparing key points across all documents"
比较结果
## Document Comparison
| Aspect | Document A | Document B |
|--------|------------|------------|
| Term Length | 2 years | 3 years |
| Value | $50,000 | $75,000 |
| Termination | 30 days notice | 60 days notice |
### Key Differences
1. [Difference 1]
2. [Difference 2]
### Similarities
1. [Similarity 1]
2. [Similarity 2]
应对挑战
扫描版 PDF(基于图像)
- 将自动应用 OCR
- 识别质量取决于扫描质量
- 可能出现识别错误
复杂版式
- 可能需要重新排列表格
- 多栏文本将按从左到右的顺序处理
- 脚注将单独处理
长文档
- 询问特定章节以提高准确性
- 请求按页提供摘要以了解概况
- 优先提出有针对性的问题,而非宽泛的问题
限制
- 无法执行 PDF 中嵌入的代码
- 受密码保护的 PDF 需要提供密码
- 超大型 PDF(500 页以上)可能需要分块处理
- 手写内容的识别能力有限
- 无法保证扫描文档的准确率达到 100%
- 图表和图像会以文字描述,不会进行数值分析
隐私说明
文档内容将按照 AI 提供商的隐私政策进行处理。对于敏感文档,可考虑:
- 使用本地部署的解决方案
- 事先删除敏感信息
- 查看数据保留政策
评论
支持 Markdown