A native macOS application for processing documents into semantic chunks and storing them as vector embeddings in a Qdrant vector database.
- Multi-format document processing (PDF, DOCX, PPTX, HTML, images) via Docling
- Local VLM support with DocTags output (SmolDocling MLX, Granite-Docling MLX), or granite-docling on a worker host through vLLM
- Text chunking with configurable token limits and overlap
- Embeddings from local CPU FastEmbed, Ollama or an OpenAI-compatible
/v1/embeddingsendpoint - Vector storage in local Docker Qdrant or Qdrant Cloud, with optional Colima controls in Preferences
- Public Hugging Face dataset search and bounded local snapshots with a remembered download folder
- Dataset embedding benchmarks and optional isolated Qdrant test collections with source provenance
- Cloud dataset imports with explicit capacity plans, text chunking and a pinned pre-embedded DBpedia profile
- Optional worker browser workspace for uploads, queue progress, cancellation, chunk preview, job settings, semantic collection search, and system-aware light/dark appearance
- Named worker profiles (wired LAN, Wi-Fi, Tailscale) with a reachability and latency check
- Retrieval over dense search or hybrid dense plus BM25 with RRF, plus an optional reranker
- Filters by year, author, DOI, title, heading, and element type
- Document summaries with an optional papers-first search, and expansion back to the parent section
- Named paper libraries stored as a Qdrant tenant field, with search limited to the active library
- Qdrant snapshot create, download, and restore from Collections
- Eval sets with recall@k, MRR, nDCG, and hit rate
- RAG chat with numbered citations, using pi or an OpenAI-compatible chat API
- Typst citations for APA 7 as adapted by the IU Zitierleitfaden: Hayagriva
.yml, BibLaTeX.bib, and#cite(<key>, supplement: [S. 12]). See docs/typst-citations.md - A stdio MCP server (
search,list_collections) for pi and other clients - Analytics, a fixed-PDF benchmark, a collection browser, and export to Markdown, HTML, JSON, and plain text
- To build and open the app: Xcode 27.2, macOS 27, Swift 6.4.
- For local document processing: Python 3.12 and the pinned script environment.
- For local Qdrant 1.20.2: Colima and the Docker CLI, or another configured Docker engine. Qdrant Cloud does not require a local container.
- For embeddings: the selected local CPU FastEmbed model, Ollama, or an OpenAI-compatible server. Models and services are optional until the corresponding operation is requested.
The macOS 27.0 deployment target is intentional: the app, its test bundles, and the vendored qdrant-swift package share that baseline, tested with Xcode 27.2 in CI. Availability annotations for older macOS releases in individual types do not lower the app’s supported OS. Supporting an older release requires changing and validating both the app and the package targets.
Ordinary app builds use checked-in generated Swift and SwiftPM dependencies. Protobuf/gRPC generators are needed only when regenerating the client: Homebrew protobuf and swift-protobuf provide protoc and protoc-gen-swift; the gRPC v2 plugin is built from grpc-swift-protobuf. Follow the pinned vendor workflow and its tool checks when changing generated sources.
For personal use, start with personal installation and updates.
For a fresh MacBook, follow the first-run checklist. Installation and distribution covers make install, optional dependencies, verified archives and a private Homebrew tap. It separates building the app from downloading models and starting a database.
make first-launch
make doctor
make setup-venv
The Python venv is created at ~/.chunky-venv. Script packages are pinned in requirements/macos-scripts.txt. Worker packages are pinned in worker/requirements.txt; Docling on the worker is worker/requirements-docling.txt. To bump a pin, change the file, install into a fresh venv, and run the unit tests.
pyrightconfig.json looks for a venv named .chunky-venv in the repo root. make setup-venv creates ~/.chunky-venv. Symlink them (ln -s ~/.chunky-venv .chunky-venv) or set pyright's venvPath to your home directory.
Package.resolved is committed for LocalPackages/qdrant-swift. It is no longer gitignored.
Note: The build disables code signing by default, so no Apple Developer account is required.
make run # build and launch the app
make build # build only
make test # Swift scheme, including UI tests
make test-python # Python helper tests (no Docling needed)
make test-worker # worker unit tests
make test-all # scheme, helper tests, worker tests, and Docling integration
make doctor # read-only macOS/toolchain prerequisite check
make test-setup # setup-check unit tests
make clean # clean this checkout's build artifacts
make open-xcode # open in Xcode
Chunky defaults to Simple mode for everyday controls. The sidebar and Preferences offer a persistent Simple / Advanced switch. Advanced reveals specialist tools and tuning; saved settings stay active in either mode. See interface modes.
Start only the services needed for the chosen workflow. For app-managed local Qdrant, use Advanced → Preferences → Qdrant → Start Qdrant after installing colima and docker; see local Qdrant. The CLI alternative is:
make qdrant # detached Qdrant v1.20.2, loopback ports, volume chunky-qdrant
make ollama # start Ollama
make services # start Qdrant detached, then Ollama in foreground
The CLI helper uses the selected Docker context and the name chunky-qdrant-cli. Confirm docker context show before starting it. Existing named containers are never replaced automatically; see the first-run guide.
Open Window → Datasets to search public Hugging Face datasets and save a bounded snapshot. Downloads default to ~/Downloads/Chunky Datasets; Choose folder… remembers a custom location without moving existing files. See dataset snapshots for revision checks and limits.
Switch the sidebar to Advanced, then in Benchmark choose Use downloaded dataset…, select a snapshot and text field, and run a small embedding-only test first. Optional collection filling creates a unique dense-cosine test collection using real embeddings; select the Default library to browse its points. Failed or cancelled writes may leave partial test data for inspection. These are throughput measurements, not retrieval-quality scores. See dataset benchmarks.
Open Window → Dataset Cloud Ingest for larger text snapshots or the curated pre-embedded DBpedia profile. Small, Medium and Large download budgets are 10 MiB, 100 MiB and 1 GiB of JSONL; they do not predict Qdrant capacity or relax Benchmark’s text limits. Cloud import requires an explicit plan using current available per-node resources and creates only a new collection. See Cloud dataset ingestion, pre-embedded compatibility, and the first-run smoke steps.
Chunky supports local vision-language models for document processing via Docling's built-in model specs. These run directly on Apple Silicon using MLX — no Ollama needed for VLM inference.
| Model | Engine | Output | Speed* |
|---|---|---|---|
| SmolDocling 256M (MLX) | MLX | DocTags | ~6s/page |
| SmolDocling 256M (Transformers) | Transformers | DocTags | ~102s/page |
| Granite-Docling 258M (MLX) | MLX | DocTags | — |
| Granite-Docling 258M (Transformers) | Transformers | DocTags | — |
*Single-page times from the Docling vision-model table. They are not a measurement of your machine.
On the app machine the default VLM is Granite-Docling MLX. On a worker host the default is granite-docling through vLLM. Change it in Preferences, Documents, VLM Model. "Standard (no VLM)" uses the classic layout-analysis pipeline. MLX models are hidden when the processing host is a worker.
The default embedding tag is qwen3-embedding:0.6b (1024 dimensions). Ollama's untagged qwen3-embedding is the 8B model. Switching width means a new collection. See docs/models.md.
Preferences, Documents, Processing host Devbox sends the file to a worker and polls progress. Save a profile per path and press Use before a job. Check reachability reports unreachable, HTTP 401, App Transport Security, success, and latency. The token stays in the Keychain. See worker host, reaching a worker, and use cases.
On a direct 10GbE link, bind the worker to the devbox’s private 10GbE address with CHUNKY_WORKER_HOST, restrict the firewall to the app machine, and keep model servers on loopback. A non-loopback worker bind requires a bearer token; configure that same token in the app’s worker profile. The Compose guide provides pinned ROCm worker and Ollama services, optional vLLM and Qdrant profiles, a token secret file, and CHUNKY_BIND_IP to publish only the worker port on the chosen private interface. Host GPU drivers and model downloads still need operator setup.
The worker can also run Granite-Docling with Transformers on ROCm when vLLM is unavailable: set CHUNKY_VLM_ENGINE=transformers. This is separate from the app machine’s Granite-Docling MLX default; see worker setup.
An optional Local Mac fallback can run a job locally if the worker is unreachable before upload. It is off by default, requires compatible local services for ingest, and never retries a submitted job or redirects a Cloud collection.
The Retrieval tab searches the active collection and the active paper library. With Processing host Devbox and Devbox ingest set to Qdrant Cloud, that search is POST /v1/search on the worker profile that Use applied. Otherwise it searches the Qdrant URL on the app machine. Hybrid search fuses the dense vector with a Qdrant BM25 text query using RRF. Rerank is optional and runs on the app machine against a Cohere-style /v1/rerank URL. Filters narrow by year, author, DOI, title, heading, or element type. Papers first returns the stored document summary, then can open the chunks from those documents. Expand to section joins sibling chunks that share the heading path. A library is a name and a stable id on each point. Search stays in the active library unless you pick a set or all libraries. Points that have no library remain in the default library. Eval stores recall@k, MRR, nDCG, and hit rate for a JSON query set. Ask in that tab to answer from the hits with citations. Chat uses a local pi install (npm install -g @earendil-works/pi-coding-agent) or an OpenAI-compatible chat API. Chunky --mcp serves the same search to pi and other MCP clients. See MCP.
Collections can create a Qdrant snapshot, download it, and restore it onto the server the browser is using. Restoring asks before it overwrites that collection.
Preferences, Embeddings, Performance distinguishes two mechanisms:
- Reuse embeddings in Qdrant checks existing chunks in the target collection for the same source, library, and text/model hash, and embeds only changed chunks. With Streaming Pipeline off, Local Mac ingest uses this check. With streaming on (the default), fresh batches skip the Qdrant lookup; imports whose complete vectors are supplied by the chunk cache still use the sequential reuse path. The reuse control therefore stays available for Local Mac in either mode. Switching pipelines keeps the saved reuse preference. These local controls do not configure Devbox jobs.
- The separate chunk cache reuses Docling conversions when the file content, Docling version, pipeline, and chunker settings match. Stored vectors are reused only for a matching embedding model and dimension. This works independently of streaming and the Qdrant reuse toggle; streaming can therefore report a chunk/vector cache hit. Preferences, About, Chunk cache sets its storage limit and clears it. Reconvert bypasses this cache. Devbox jobs use the worker's chunk cache.
No collection is recreated or reconfigured by changing these controls.
Chunky/Sources/
Models/ AppState, settings, jobs, retrieval eval, dataset snapshots and reports
Services/ Docling, embeddings, Qdrant, Colima, datasets, Cloud import, benchmarks, worker client, retrieval, pi, MCP
Views/ Queue, Collections, Retrieval, Eval, Analytics, Benchmark, Datasets, Dataset Cloud Ingest, Preferences
Theme/ AppTheme
worker/ FastAPI worker: jobs, ingest, dense and hybrid search
LocalPackages/ qdrant-swift (gRPC and REST client)
- grpc-swift-2 -- GRPCCore
- grpc-swift-nio-transport -- GRPCNIOTransportHTTP2
- grpc-swift-protobuf -- GRPCProtobuf
- swift-protobuf
- swift-collections
The gRPC migration already landed in PER-55 / PR #5. The vendored qdrant-swift/Package.swift and its committed Package.resolved record:
| Package | Minimum in manifest | Committed resolution |
|---|---|---|
grpc-swift-2 |
2.4.4 | 2.4.4 |
grpc-swift-nio-transport |
2.0.0 | 2.13.0 |
grpc-swift-protobuf |
2.0.0 | 2.5.0 |
swift-protobuf |
1.41.0 | 1.41.0 |
These replace the old grpc-swift repository and 1.x transport/protobuf bounds. The major migration described as deferred in PER-57 is therefore already complete; no additional migration or downgrade is needed. SwiftPM’s from: requirements allow compatible updates within each major version. When updating the vendored package, validate its unit tests with swift test --package-path LocalPackages/qdrant-swift --skip IntegrationTests from the repository root, then build and test the macOS app. Live Qdrant integration tests remain a separate operator check outside CI.
- MacBook first run
- Verified version audit
- Hugging Face dataset snapshots
- Dataset benchmarks and test collections
- Dataset ingestion into Qdrant Cloud
- Pre-embedded dataset compatibility
- Local Qdrant with Colima
- Qdrant client provenance
- Model choices
- Worker host
- Reaching a worker
- Worker use cases
- MCP search server
- Browser workspace
- Worker API
- Docling
For branch cleanup and Linear archive constraints, see repository and ticket maintenance.
