🚀 DocPilot CLI
DocPilot is a lightning-fast, local-first CLI for document ingestion and interactive question-answering. Powered by Ollama and Chroma, it allows you to ingest websites, PDFs, and CSVs directly from your terminal and chat with your documents—keeping 100% of your data safely on your own machine.
It’s built for practical developer workflows: crawl sites concurrently, prepare chunks with multi-threading, and iterate rapidly without ever paying for a cloud API.
✨ Features
- 🔒 100% Local: No data ever leaves your machine. Powered by Ollama.
- ⚡ Interactive Setup Wizard: Get up and running instantly with smart model auto-detection.
- 🌐 Universal Ingestion: Seamlessly ingest Website URLs, XML Sitemaps, PDFs, and CSVs.
- 🚀 Concurrent Processing: Lightning-fast crawling and multi-threaded document chunking.
- 🎛️ Performance Profiles: Switch between
fast,balanced, andqualityinference speeds on the fly. - 🎨 Beautiful Terminal UI: Rich markdown rendering, ASCII art, and intuitive progress bars.
📦 Installation
DocPilot is available on PyPI! You can install it globally using pip, uv, or pipx.
# Recommended: Install using uv or pipx
uv tool install docpilot-cli
# Or via standard pip
pip install docpilot-cli
# Optional: Add PDF parsing support
pip install "docpilot-cli[pdf]"
Prerequisites
- Python 3.12+
- Ollama: Installed and running in the background.
- Pull your preferred models:
ollama pull qwen2.5:latest
ollama pull mxbai-embed-large:335m
🛠️ Quick Start
The very first time you run a DocPilot command, it will launch the Interactive Setup Wizard to help you configure your chat and embedding models.
1. Ingest Knowledge
Point DocPilot to any documentation site, sitemap, PDF, or CSV:
# Crawl a website
docpilot ingest "https://docs.python.org/3/" --max-pages 100 --workers 16
# Ingest a local PDF
docpilot ingest "./docs/engineering_handbook.pdf"
# Ingest a CSV
docpilot ingest "./data/faq.csv"
2. Ask Questions
Query your newly created local knowledge base:
docpilot ask "How do I create a virtual environment?"
🧰 CLI Command Reference
Manage your configuration, models, and local database with ease.
docpilot setup
Re-run the interactive setup wizard at any time to change your default models.
docpilot project
Switch to a different project or check the active project. Each project has its own isolated vector database.
docpilot project
docpilot project <project-name>
docpilot clear
Wipe your local Chroma vector database to start fresh. Prompts for safety confirmation.
docpilot speed [profile]
Adjust the retrieval and generation settings for your desired use case.
fast: Lower latency, shorter context limits.balanced: Default trade-off.quality: Larger context, more comprehensive answers, slower inference.
docpilot model
Manually manage your Ollama models without the interactive setup wizard.
docpilot model list
docpilot model set <chat-model>
docpilot model setembed <embedding-model>
docpilot render
Parse and beautifully render any markdown file or text string directly in your terminal.
docpilot show
Display your current project version and configuration in beautiful ASCII art.
🏗️ Architecture Under the Hood
DocPilot employs an optimized RAG (Retrieval-Augmented Generation) pipeline:
- Ingestion: Native Python extractors (BeautifulSoup4,
csv,pypdf) parse the raw data. - Chunking: Multi-threaded chunkers slice the documents into semantically coherent pieces.
- Embedding:
langchain-ollamacreates local vector embeddings via Ollama. - Storage:
chromadbpersistently stores vectors on disk at~/.docpilot/chroma_langchain_db. - Retrieval: User queries are embedded, matched via similarity search, and fed into a system prompt.
- Generation: The designated Ollama chat model generates the final response streamed to the terminal using
rich.
🤝 Contributing
Contributions are welcome! If you are using DocPilot for your daily workflows or in a hackathon, feel free to open issues and pull requests.
To set up a local development environment:
git clone https://github.com/yourusername/docpilot.git
cd docpilot
uv pip install -e ".[dev]"
uv run pytest
📄 License
This project is licensed under the MIT License.
Metadata
Release files for docpilot-cli 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docpilot_cli-1.0.4.tar.gz | 18.4 kB | Without provenance | Details for docpilot_cli-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docpilot_cli-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for docpilot_cli-1.0.4-py3-none-any.whl |
Total release size: 36.2 kB
Release files / docpilot_cli-1.0.4.tar.gz
| Download URL | docpilot_cli-1.0.4.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daa106ee55c0eea221d491eed34a6f724cfa7fc6580d48ef766297b4fadb8206
|
|
BLAKE2b-256 checksum How to use checksums |
f50a4448175c785bd2bde60ce41acabcbc5b29637273d6560e7cc62f353e8afc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / docpilot_cli-1.0.4-py3-none-any.whl
| Download URL | docpilot_cli-1.0.4-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb2c623035f1601e7776a517ed3b3e597a25707c69371e08d066342bcfceec34
|
|
BLAKE2b-256 checksum How to use checksums |
87950648cc56841d294f5064f1d515328afd31c4bb0a868f32ad7158ec6c49c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for docpilot-cli 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.