Skip to content

Latest commit

 

History

History
140 lines (108 loc) · 4.95 KB

README.md

File metadata and controls

140 lines (108 loc) · 4.95 KB

Pyxis

An all-local AI document reader suite for the ultimate learner.

Pyxis is a local-first PDF reader with multimodal AI built in. It reads pages aloud via neural TTS, describes images and charts for blind users, answers questions about your documents with RAG-grounded citations, and writes WYSIWYG Markdown notes alongside every PDF. The AI model (Gemma 4), the TTS engine (Piper), and your documents all run entirely on your machine — no cloud, no API keys, no telemetry.

Features

  • Native PDF rendering via PyMuPDF (MuPDF) with LRU render cache
  • Live-preview Markdown notes — Obsidian-style: type Markdown, see it rendered live; inline images render as pictures, not paths; debounced atomic autosave per PDF
  • Multimodal AI (Gemma 4) — summarize notes/pages, Q&A with RAG + page citations, extract to-dos, draft follow-ups, suggest tags. Streams output live into notes.
  • Accessibility mode 🎧 — Piper neural TTS reads pages aloud; vision model describes images for blind users; descriptions cached for re-opening; resume-reading works across sessions
  • RAG retrieval — BM25 + fuzzy blend over paragraphs/tables/images with budget-aware context assembly
  • Highlights & captures — saved as PNGs, embedded into notes
  • Cross-platform — Linux (AppImage), Windows (portable EXE)
  • Dark theme by default
  • No cloud, no API keys, no telemetry

The AI layer needs ≥ 8 GB RAM. On first use it downloads an open-weights Gemma 4 GGUF model (sized to your machine) + a ~65 MB Piper voice file. If you have an NVIDIA GPU, it auto-downloads a CUDA build for faster inference.

Download

Pre-built binaries are on the GitHub Releases page:

  • Linux: Pyxis-x86_64.AppImage — single file, no install. chmod +x && ./Pyxis-*.AppImage
  • Windows: Pyxis.exe — single portable executable. Double-click to run.

Build from source

Requires Python 3.10+.

git clone https://github.com/Ibzie/Pyxis.git
cd Pyxis
python -m venv .venv
source .venv/bin/activate   # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"

Then run:

pyxis                     # welcome screen
pyxis document.pdf        # open a PDF directly

(python -m pyxis document.pdf is equivalent.)

For GPU acceleration (NVIDIA) build llama-cpp-python against CUDA:

CMAKE_ARGS="-DGGML_CUDA=on" pip install --upgrade --force-reinstall llama-cpp-python

On Apple Silicon, Metal is picked up automatically from the prebuilt wheel.

For each opened PDF a folder is created at ~/.local/share/pyxis/notes/<pdf-name>/ (Linux) or %APPDATA%\pyxis\notes\<pdf-name>\ (Windows) containing:

  • notes.md — editable Markdown notes
  • highlights/ — image snippets of highlighted text
  • captures/ — image snippets of screen captures
  • annotations.json — metadata index + cached image descriptions + narration resume position

AI menu (toolbar → AI)

Command What it does
Load AI Model Detects RAM/accel, downloads a fitting Gemma 4 GGUF, loads in-process
Summarize Notes Markdown bullet summary of the whole notes.md
Summarize Current Page Bullet summary of the page in view
Ask… Free-form Q&A grounded in your PDF via RAG (with page citations)
Extract To-Dos Markdown checklist of action items
Draft Follow-up A short connecting note
Suggest Tags A line of #tag tokens

AI output is streamed live into the notes panel and saved like any other note. Esc cancels an active run.

Accessibility (🎧 toolbar button or Ctrl+Shift+A)

See docs/accessibility.md for the full guide. Resume-reading works across sessions, and every image is described aloud by the on-device vision model.

Shortcut Action
R Read current page aloud (TTS)
C Continue reading from your saved position (cross-session)
S Stop narration
Space / P Pause/resume narration
I Describe next image on current page (vision model)
N Read notes panel aloud
? Open the Accessibility Help window (and read it aloud)
Alt+Left/Right Navigate pages (stops narration first)

Right-clicking an image region triggers description immediately.

General Keyboard Shortcuts

Shortcut Action
Ctrl+O Open file
Ctrl+0 Toggle fit-to-width
Ctrl+Shift+A Toggle accessibility mode
Ctrl= / Ctrl+ Zoom in
Ctrl+- Zoom out
Alt+Right Next page
Alt+Left Previous page
Esc Clear search / cancel capture / cancel AI / stop narration

Tech Stack

Python · PyQt6 · PyMuPDF · llama.cpp · Gemma 4 · Piper TTS

License

Apache License 2.0 — see LICENSE.