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 onboardmycroft config resolveCommon commands
mycroft book listmycroft book ingest /path/to/book.epubmycroft book ingest /path/to/book.epub --summarymycroft book ingest /path/to/book.epub --batchmycroft book ingest /path/to/book.epub --batch --summarymycroft book ingest resume mycroft book ingest status mycroft book show mycroft book ask "What is the main conflict?" mycroft book search "mad hatter" --top-k 5 mycroft book delete --force mycroft chat start mycroft chat ask "What does this foreshadow?" mycroft chat repl Notes
mycroft config path to find the config file location.book ask and book search require embeddings and an OPENAI_API_KEY.OPENAI_API_KEY.book search and synthesize answers yourself before using book ask.--summary only when needed.--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.--batch ingestion, use mycroft book ingest status to check progress and mycroft book ingest resume to complete indexing.mycroft book ingest resume to continue from the last saved chunk.resume automatically re-submits it.--manual or omit confirmations with --force.共 1 个版本