This is a viewer only at the moment see the article on how this works.
To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk
This is a preview from the server running through my markdig pipeline
Sunday, 21 December 2025
这是 第二部分 第二部分 DocSummerizer 系列中的文档合成器序列。请参见 第一部分 第一部分 用于构建和模式,或 第三部分 第三部分 深层技术潜入嵌入和检索。
将文档或 URL 转换成有证据依据的摘要 -- -- 供人类或AI 代理商使用 -- -- 而不向云中发送任何信息。
每一个索赔要求都是可追踪的,每个事实都引证了它的来源。自成一体的二进制,完全在你的机器上运行。
# Human-readable summary
docsummarizer -f contract.pdf
# JSON for agents/pipelines
docsummarizer tool -u "https://docs.example.com"
本条所包括的内容:安装、关键模式(自动/自动/自动拉格/贝特)、模板和通用案例。
所不包含的: 完全命令参考、 配置选项、 排除故障、 架构细节 。
大部分总结者都给你文本。这给了你 证据证据证据.
[chunk-N] 引用引用 返回源材料需要时 信任信任信任 一份重要摘要,或将其输入另一个系统。
缩略 tool 其产出结构为JSON, 带有证据确凿的主张, 最适合建造RAG管道或代理工具。
# Summarize a URL and get JSON output
docsummarizer tool --url "https://example.com/docs.html"
# Summarize a local file
docsummarizer tool -f document.pdf
# With a focus query
docsummarizer tool -f contract.pdf -q "payment terms and conditions"
# Pipe to jq for processing
docsummarizer tool -f doc.pdf | jq '.summary.keyFacts'
工具指令返回结构化的JSON, 附有证据追踪:
{
"success": true,
"source": "https://example.com/docs.html",
"contentType": "text/html",
"summary": {
"executive": "Brief summary of the document.",
"keyFacts": [
{
"claim": "The system supports 10,000 TPS.",
"confidence": "high",
"evidence": ["chunk-3", "chunk-7"],
"type": "fact"
}
],
"topics": [
{
"name": "Architecture",
"summary": "The system uses microservices...",
"evidence": ["chunk-1", "chunk-2"]
}
],
"entities": {
"people": ["John Smith"],
"organizations": ["Acme Corp"],
"concepts": ["OAuth 2.0", "REST API"]
},
"openQuestions": ["What is the disaster recovery plan?"]
},
"metadata": {
"processingSeconds": 12.5,
"chunksProcessed": 15,
"model": "qwen2.5:1.5b",
"mode": "MapReduce",
"coverageScore": 0.95,
"citationRate": 1.2,
"fetchedAt": "2025-01-15T10:30:00Z"
}
}
docsummarizer tool [options]
|--------|-------|-------------|
| --url | -u 获取和总结的 URL @ URL @ label
| --file | -f
| --query | -q 可选焦点查询 {
| --mode | -m 总结模式(自动、BertRag、Bert、BertHybrid、MapReduce、Rag、迭代)
| --model 使用奥拉马模式的奥拉马模式
| --config | -c 配置文件路径
evidence 引用源块的 IDhigh, medium,或 low 基于佐证证据executive 摘要中没有用于轻松显示的引用标记success: false 具有 a 和 error 消息消息Python 脚本 :
import subprocess
import json
result = subprocess.run(
["docsummarizer", "tool", "-u", "https://example.com/api-docs"],
capture_output=True, text=True
)
data = json.loads(result.stdout)
if data["success"]:
for fact in data["summary"]["keyFacts"]:
if fact["confidence"] == "high":
print(f"- {fact['claim']}")
壳牌输油管:
# Extract high-confidence facts only
docsummarizer tool -f doc.pdf | jq '[.summary.keyFacts[] | select(.confidence == "high")]'
# Get just the executive summary
docsummarizer tool -u "https://example.com" | jq -r '.summary.executive'
预建本地可执行文件 GitHub 释放:
平台 建筑 下载 下载
| ---------- | -------------- | ---------- |
|---|
docsummarizer-win-arm64.zip |docsummarizer-linux-x64.tar.gz |docsummarizer-linux-arm64.tar.gz |MacOS X64 (英特尔) * * * * MacOS * * x64 (英特尔) * * * * maceOS * * * intel * * * * * macOS * *% * * x64 (intel) * * * * * macOS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * docsummarizer-osx-x64.tar.gz |
|---|
# Download and extract (Linux/macOS)
curl -L -o docsummarizer.tar.gz https://github.com/scottgal/mostlylucidweb/releases/download/docsummarizer-v3.1.0/docsummarizer-linux-x64.tar.gz
tar -xzf docsummarizer.tar.gz
chmod +x docsummarizer
# Download and extract (Windows PowerShell)
Invoke-WebRequest -Uri "https://github.com/scottgal/mostlylucidweb/releases/download/docsummarizer-v3.1.0/docsummarizer-win-x64.zip" -OutFile "docsummarizer.zip"
Expand-Archive -Path "docsummarizer.zip" -DestinationPath "."
对于纯粹的采掘总结, 不需要外部服务:
docsummarizer -f document.md -m Bert
ONNX 模型在第一次使用时从 Hugging Face 自动卸载(~ 23MB) 。 返回时间为~ 3-5 秒 。
对于LLM-电力总和,Ollama需要:
# Install Ollama from https://ollama.ai
ollama pull llama3.2:3b # Default model - good balance of speed/quality
ollama serve
速度提示:用于快速摘要(3s 和15s),使用
--model qwen2.5:1.5b
PDF、DOCX、XLSX、PPTX、HTML、图像(PNG/JPG/TIFF)、CSV、VTT和AsciiDoc文件所需的文件。 直接读取 Markdown 和 普通文本文件 - 不需要 docling 。
docker run -d -p 5001:5001 quay.io/docling-project/docling-serve
默认不需要 - BertRag 使用模拟矢量。 启用 Qdrant 用于持久性存储, 以避免以后运行时重新组合文档 :
docker run -d -p 6333:6333 -p 6334:6334 qdrant/qdrant
然后配置 docsummarizer.json:
{
"bertRag": {
"vectorStore": "Qdrant",
"collectionName": "docsummarizer",
"persistVectors": true
}
}
如果您更喜欢 Ollama 嵌入, 而不是 ONNX :
ollama pull nomic-embed-text # Or mxbai-embed-large
# Then use: --embedding-backend Ollama
docsummarizer check --verbose
预期输出显示格式化表格 :
Dependency Status
╭─────────┬────────┬────────────────────────╮
│ Service │ Status │ Endpoint │
├─────────┼────────┼────────────────────────┤
│ Ollama │ OK │ http://localhost:11434 │
│ Docling │ Optional │ http://localhost:5001 │
│ Qdrant │ Optional │ localhost:6333 │
╰─────────┴────────┴────────────────────────╯
Default Model Info
╭────────────────┬────────────────╮
│ Property │ Value │
├────────────────┼────────────────┤
│ Name │ llama3.2:3b │
│ Family │ llama │
│ Parameters │ 3.2B │
│ Context Window │ 128,000 tokens │
╰────────────────┴────────────────╯
Ready to summarize! Ollama is available.
注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注的注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注注: docling 和 Qdrant 显示
运行中 docsummarizer 没有论据将:
README.md 在当前目录中readme.summary.md# Summarize README.md in current directory
docsummarizer
# Shows a formatted panel with:
# - Document info table (file, mode, model)
# - Progress indicators during processing
# - Summary panel with the result
# - Topics tree if available
# - Saved: readme.summary.md
# Just run it - Auto mode picks the best approach
docsummarizer -f document.pdf
# Fast mode - no LLM, pure extraction (~3-5s)
docsummarizer -f document.pdf -m Bert
# Production mode - best quality with validated citations
docsummarizer -f document.pdf -m BertRag
# Focused on specific topic
docsummarizer -f manual.pdf -m BertRag --focus "installation steps"
# Verbose progress
docsummarizer -f document.pdf -v
该工具从“ 仅图解” 进化为完整管道。 以下是每个模式的实际作用 :
根据你的要求选择正确的模式。使用这个模式,除非你有理由不这样做。
docsummarizer -f doc.pdf
这是你生产时想要的,三阶段输油管:
docsummarizer -f doc.pdf -m BertRag
docsummarizer -f doc.pdf -m BertRag --focus "payment terms"
为什么使用它: 每个索赔都追溯到源段。 没有幻觉。 缩放到任何文件大小 。 LLM 只在结尾处运行( cheap ) 。
利用当地ONNX模型进行纯采掘,完全没有LLM呼叫。
docsummarizer -f doc.pdf -m Bert
为什么使用它: 脱机工作。 返回时间为~ 3-5 秒。 确定性( 相同的输入 = 相同的输出) , 足够快速扫描 。
BERT提取,LLM抛光,Bert和BertRag之间的中间地带
docsummarizer -f doc.pdf -m BertHybrid
原始模式。 仍然有效, 但 BertRag 取代了大多数使用过的模式 。
docsummarizer -f doc.pdf -m MapReduce # Full coverage
docsummarizer -f doc.pdf -m Rag --focus "query" # Legacy focused mode
与其总结,不如就文件提出问题:
docsummarizer -f manual.pdf --query "How do I install the software?"
直接总结网页而不下载:
# Summarize a web article
docsummarizer --url "https://example.com/article.html" --web-enabled
# Summarize a remote PDF
docsummarizer --url "https://example.com/document.pdf" --web-enabled
# With structured JSON extraction
docsummarizer --url "https://example.com/api-docs.html" --web-enabled --structured
支持内容HTML(保密)、PDF、Markdown、图像(OCR)、办公室文档。大型图像自动调整大小。
安全安全安全安全安全安全安全安全苏维埃社会主义联邦共和国保护、 DNS 约束性保护、 内容型加固、 消压炸弹保护、 HTML 净化。
JavaScript 发送页面:使用 --web-mode Playwright 用于 SPA 和 React apps(首次使用时自动安装铬)。
抽取机器可读 JSON 而非文章 :
docsummarizer -f document.pdf --structured -o Json
摘录:实体、职能、关键流量、事实(具有信心水平)、不确定性、可配额的段落。
# Use a template
docsummarizer -f doc.pdf --template executive
docsummarizer -f doc.pdf -t bullets
# Specify custom word count with template:wordcount syntax
docsummarizer -f doc.pdf -t bookreport:500
docsummarizer -f doc.pdf -t executive:100
# Or use --words to override any template's default
docsummarizer -f doc.pdf -t detailed --words 300
|----------|-------|----------|
| default 300
| prose ~~400 ~ 清除多段简讯 - 没有元数据 ~ ~
| brief ~ ~ 50 ~ Quick 2-3 句子摘要 ~
| oneliner =~25 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
| bullets * 自动 * 弹点列表 (5-7 项) * * * 自动 * * 弹点列表 (5-7 项) *
| executive ~150 ~ ~ ~ ~ ~ 执行简报,附带建议 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 执行简报,附有建议 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 落实简报,带有建议 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 落实简报,带有建议 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
| detailed ~~ 1 000 ~ 全面讨论全部议题 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 全面讨论全部议题 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 全面讨论全部议题 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
| technical -=YTET -伊甸园字幕组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=- 翻译组=-
| academic -=YTET -伊甸园字幕组=- 翻译:
| citations Outo {Outo 关键引号,仅引文来源{
| bookreport ~500 ~ ~ 书报告(设置、字符、绘图、主题) ~ ~ ~ ~ ~ ~ ~ ~ 书报告(设置、 字符、 情节、 主题) ~ ~ ~ ~ ~ ~ ~ ~
| meeting 会议说明(决定、行动、问题)
| strict ~60 ~ ~ ~ ~ ~ ~ ~ 节能, 3发子弹, 最大 3 子弹, 没有套套 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
要查看所有可用的模板, 包括说明 :
docsummarizer templates
比较同一文档中使用 benchmark 子命令 :
docsummarizer benchmark -f doc.pdf -m "qwen2.5:1.5b,llama3.2:3b,ministral-3:3b"
基准命令切换文档一次, 然后在相同的块上运行每个模型, 以便公平比较。 输出显示每个模型的时间、 字数和单词/ 秒 。
处理整个目录 :
# Use BertRag for quality
docsummarizer -d ./documents -m BertRag -v
# Fast offline batch (no LLM needed)
docsummarizer -d ./documents -m Bert -o Json --output-dir ./summaries
# Process only PDFs recursively
docsummarizer -d ./documents -e .pdf --recursive -v
|--------|-------|-------------|---------|
| --file | -f 文档路径( DOCX、PDF、MD) -
| --directory | -d 批量处理目录路径 *
| --url | -u 获取和总结的网络 URL
| --web-enabled 启用 Web 获取( 需要 -- url) { false |
| --mode | -m * 总结模式:自动、伯特拉格、伯特、伯特赫布里德、地图、拉格、迭代 * Auto |
| --structured | -s 使用结构化的 JSON 提取模式 false |
| --focus
| --query | -q * 查询模式,而不是总结 * 无 *
| --model 使用奥拉马模式的奥拉马模式 llama3.2:3b |
| --verbose | -v 使用 Live UI 显示详细进度 false |
| --config | -c 配置文件 自动发现 的路径
| --output-format | -o 输出格式: 控制台、 文本、 标记、 Json Console |
| --output-dir 文件输出输出输出目录 当前 dir
| --extensions | -e 批量模式 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
| --recursive | -r 进程目录递归 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ false |
| --template | -t * 摘要模板(默认、简要、子弹、执行等) default |
| --words | -w 目标字数( 覆盖模板)
--embedding-backend 嵌入后端: Onnx, Ollama Onnx |
|
|---|---|
--web-mode Simple |
|
--analyze |
-a * 运行关于摘要的质量分析 * * * false |
全面摘要最好,包括全部文件。
docsummarizer -f document.pdf -m MapReduce -v
如何运作:
长期文件的等级裁减:
对于组合块摘要超过模型上下文窗口的非常长的文档,MapRduce自动使用降级:
100 chunks → 100 summaries → 5 batches → 5 intermediate summaries → final
这保留了文件的完整覆盖度,无论长度 - 每个块都为最终摘要贡献力量。 工具估算符号( ~ 4 字符/ 吨) , 目标为每个降压通行证60% 的上下文窗口利用率 。
Pros 专业:快速、完整覆盖、平行处理、处理任何文件长度 共: 可能错失跨部门连接, 较长文件速度慢
最好在需要关注特定专题或有针对性问题时。
docsummarizer -f document.pdf -m Rag --focus "pricing and payment terms" -v
如何运作:
何时在 MapRedduce 上使用 RAG 时:
假想 最佳模式 |----------|-----------|
"这上面写着什么安全?" 500页的手册,需要一切 地图(等级) 500页手册,需要具体章节 需要快速的结果, 没有Qdrant MapReduce
RAG 是 否 处理长文档时处理长文档 - MapReduce 处理, 并降低级别。 RAG 是大约 相关相关过滤过滤:当您想要忽略文件的90% 并关注与您特定问题相关的内容时。
Pros 专业以专题为重点、对语义的理解、再利用指数、对重点查询更快 共: 可能错过重点领域以外的内容, 需要 Qdrant, 慢速的初始索引
对于叙述性文件而言,情况依次流动的最佳方式是叙述性文件。
docsummarizer -f story.pdf -m Iterative -v
警告警告警告警告:在长文档(>10块)上变慢并可能丢失上下文。
法律合同 完整摘要 地图 无法错过条款
| -------------- | ----------- | ------- |
|---|---|---|
| 技术文件 * 概览的地图图集和具体细节的RAG * | ||
| 法律/合同 每一个条款都重要 | ||
| 手册手册手册手册 通常询问具体细节 |
文件大小 * 地图 * * RAG * 注 * |---------------|-----------|-----|-------| 10页 15页 20页 两个都快
docsummarizer config --output myconfig.json
自动发现配置来自 :
--config 选项选项选项docsummarizer.json 在当前目录中.docsummarizer.json (隐藏文件)~/.docsummarizer.json (用户主机)示例示例示例示例 docsummarizer.json:
{
"embeddingBackend": "Onnx",
"onnx": {
"embeddingModel": "AllMiniLmL6V2"
},
"ollama": {
"model": "llama3.2:3b",
"embedModel": "mxbai-embed-large",
"baseUrl": "http://localhost:11434",
"temperature": 0.3,
"timeoutSeconds": 1200
},
"docling": {
"baseUrl": "http://localhost:5001",
"timeoutSeconds": 1200,
"pdfBackend": "pypdfium2",
"pagesPerChunk": 10,
"maxConcurrentChunks": 4,
"enableSplitProcessing": true
},
"qdrant": {
"host": "localhost",
"port": 6333,
"collectionName": "documents"
},
"processing": {
"maxHeadingLevel": 2,
"targetChunkTokens": 1500,
"minChunkTokens": 200,
"maxLlmParallelism": 2
},
"output": {
"format": "Console",
"verbose": false,
"includeTrace": false
},
"webFetch": {
"enabled": false,
"mode": "Simple",
"timeoutSeconds": 30,
"userAgent": "Mozilla/5.0 DocSummarizer/1.0"
},
"batch": {
"fileExtensions": [".pdf", ".docx", ".md", ".txt", ".html"],
"recursive": false,
"continueOnError": true
}
}
|--------|---------|-------------|
| maxLlmParallelism 8 同时的LLM 请求 (Ollama 队列, 如此高的值仅是队列)
| maxHeadingLevel 21111H1/H2。 33312222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
| targetChunkTokens 0 (自动) 目标块大小 。 0 = 自动计算 (~ 25% 的上下文窗口) 目标块大小 。 0 = 自动计算 (~ 25% 的上下文窗口)
| minChunkTokens 0 (自动) * 合并前的最低值。 0 = 1/8 目标 *
## Executive Summary
- Key finding 1 with specific details [chunk-0]
- Important point 2 with numbers and dates [chunk-3]
- Critical requirement 3 [chunk-5]
## Section Highlights
- Introduction: Overview of the system architecture [chunk-0]
- Requirements: Technical specifications detailed [chunk-3]
...
## Open Questions
- What is the timeline for Phase 2?
- How does the fallback mechanism work?
### Trace
- Document: document.pdf
- Chunks: 12 total, 12 processed
- Topics: 5
- Time: 21.4s
- Coverage: 100%
- Citation rate: 1.20
追踪指标覆盖率(包括百分比部分)、引用率(引文/插件)、处理的块数(RAG可能跳过部分)。
е 使用
|-------|------|-------|---------|----------|
| qwen2.5:1.5b -=YTET -伊甸园字幕组=- 翻译:
| gemma3:1b 815MB 快速 (~ 10s) * 公平 * 替代性小型模型 * * * * 快速 (~ 10s) * 公平 *
| llama3.2:3b 中度 (~15s) 非常好 默认默认 - 良好平衡 *
| ministral-3:3b 2.9GB 中等 (~20s) 非常好 注重质量
| llama3.1:8b 4.7GB * 慢(~45s) * 出色 * 高质量摘要 * * *
提示提示:用于快速摘要(3s 和15s),使用
--model qwen2.5:1.5b对于质量更重要的关键文件,使用--model llama3.1:8b.
# Clone the repository
git clone https://github.com/scottgal/mostlylucidweb.git
cd mostlylucidweb/Mostlylucid.DocSummarizer
# Build
dotnet build
# Run
dotnet run -- --help
用于在不需要.NET运行时间安装的情况下进行生产部署:
# Build self-contained executable (Windows x64)
dotnet publish -c Release -r win-x64 --self-contained
# Build for Linux
dotnet publish -c Release -r linux-x64 --self-contained
# Build for macOS
dotnet publish -c Release -r osx-x64 --self-contained
产出: bin/Release/net9.0/<runtime>/publish/docsummarizer
ollama serveollama listdocker run -p 5001:5001 quay.io/docling-project/docling-serve--mode Rag)docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant症状而不是总结内容。 校对:Soup
原因原因原因原因原因:与快速或内容斗争的模型过长。
修整: 默认 qwen2.5:1.5b 大多数文件处理良好。对于有问题的文件,请尝试 --model llama3.2:3b见 示范建议建议.
如果摘要似乎是笼统的或没有提及具体内容:
Citation rate 跟踪输出--mode Rag以回收的块块作为基础摘要--verbose 查看哪些块正在处理中如果缺少摘要 [chunk-N] 引用:
llama3.2:3bCitation rate 在追踪中 - 数值较高表明可追踪性更好qwen2.5:1.5b 速度, llama3.2:3b 余额, llama3.1:8b 质量maxLlmParallelism 如果发生超时© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.