← 返回
开发者工具 Key 中文

mycroft

EPUB and ebook ingestion, local vector index, and Q&A CLI for books.
EPUB 与电子书摄取、本地向量索引以及图书问答命令行工具
fabe
开发者工具 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 2
Stars
📥 950
下载
💾 22
安装
1
版本
#latest

概述

mycroft

Use mycroft to ingest EPUBs and ebooks, build a local vector index, and ask questions about a book.

Setup (once)

  • export OPENAI_API_KEY="..."
  • mycroft config onboard
  • mycroft config resolve

Common commands

  • List books: mycroft book list
  • Ingest EPUB: mycroft book ingest /path/to/book.epub
  • Ingest with summaries: mycroft book ingest /path/to/book.epub --summary
  • Ingest with batch embeddings (50% cheaper): mycroft book ingest /path/to/book.epub --batch
  • Ingest with batch summaries + embeddings: mycroft book ingest /path/to/book.epub --batch --summary
  • Resume batch ingestion: mycroft book ingest resume
  • Check ingestion status: mycroft book ingest status
  • Show metadata: mycroft book show
  • Ask a question: mycroft book ask "What is the main conflict?"
  • Search passages: mycroft book search "mad hatter" --top-k 5
  • Delete book: mycroft book delete --force
  • Start chat: mycroft chat start
  • Ask in session: mycroft chat ask "What does this foreshadow?"
  • Continue chat: mycroft chat repl

Notes

  • Use mycroft config path to find the config file location.
  • book ask and book search require embeddings and an OPENAI_API_KEY.
  • Chat commands require embeddings and an OPENAI_API_KEY.
  • Prefer book search and synthesize answers yourself before using book ask.
  • Summaries increase ingestion time and cost significantly; enable --summary only when needed.
  • Use --batch to run embeddings and summaries via the OpenAI Batch API at 50% cost; results may take up to 24 hours. When combined with --summary, summaries are batched first, then embeddings on resume.
  • After --batch ingestion, use mycroft book ingest status to check progress and mycroft book ingest resume to complete indexing.
  • If a non-batch ingest is interrupted, use mycroft book ingest resume to continue from the last saved chunk.
  • If a batch fails, resume automatically re-submits it.
  • For scripted runs, avoid interactive flags like --manual or omit confirmations with --force.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 08:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,623
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,946
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,432