Ingest Documents
Ingest a PDF or text file into the local vector store for retrieval-augmented generation.
Workflow
- Run the ingest script:
bun "${CLAUDE_SKILL_DIR}/scripts/ingest.mjs" $ARGUMENTS
- Verify ingestion:
bun "${CLAUDE_SKILL_DIR}/scripts/list.mjs"
- Confirm to the user: number of chunks and pages. Suggest next actions: report, flashcards, quiz, slides, audio, mind map, infographic, or data table.
Querying ingested sources
To retrieve relevant chunks for any generation task:
bun "${CLAUDE_SKILL_DIR}/scripts/query.mjs" "<question>" --top-k 15
Gotchas
- First run downloads the all-MiniLM-L6-v2 model (~23MB). Subsequent runs use cache.
- Large PDFs (100+ pages) take 2-5 minutes on CPU — embedding is the bottleneck.
- Scanned/image-only PDFs are automatically OCR'd via Tesseract.js (first OCR run downloads ~15MB language data). Use
--no-ocrto skip. - The store persists at
~/.notebook-plugin/across sessions. Useclearto reset. - Multiple files can be ingested into the same store — they're all searchable together.
Additional resources
- For supported formats and embedding details, see references/formats.md