| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A lightweight multimodal RAG (Retrieval-Augmented Generation) library that uses vision AI instead of traditional embeddings or vector databases. DocPixie processes documents as images and uses vision language models for both document understanding and intelligent page selection.
# use uv (recommended)
uv pip install docpixie
# or pip
pip install docpixieTry the CLI:
docpixieimport asyncio
from docpixie import DocPixie
async def main():
# Initialize with your API key
docpixie = DocPixie()
# Add a document
document = await docpixie.add_document("path/to/your/document.pdf")
print(f"Added document: {document.name}")
# Query the document
result = await docpixie.query("What are the key findings?")
print(f"Answer: {result.answer}")
print(f"Pages used: {result.page_numbers}")
# Run the example
asyncio.run(main())Start the interactive terminal interface:
docpixieThe CLI provides:
DocPixie uses environment variables for API key configuration:
# For OpenAI (default)
export OPENAI_API_KEY="your-openai-key"
# For Anthropic Claude
export ANTHROPIC_API_KEY="your-anthropic-key"
# For OpenRouter (supports many models)
export OPENROUTER_API_KEY="your-openrouter-key"You can also specify the provider:
from docpixie import DocPixie, DocPixieConfig
config = DocPixieConfig(
provider="anthropic", # or "openai", "openrouter"
model="claude-3-opus-20240229",
vision_model="claude-3-opus-20240229"
)
docpixie = DocPixie(config=config)DocPixie uses a clean, modular architecture:
📁 Core Components ├── 🧠 Adaptive RAG Agent - Dynamic task planning and execution ├── 👁️ Vision Processing - Document-to-image conversion via PyMuPDF ├── 🔌 Provider System - Unified interface for AI providers ├── 💾 Storage Backends - Local filesystem or in-memory storage └── 🖥️ CLI Interface - Modern terminal UI with Textual 📁 Processing Flow 1. Document → Images (PyMuPDF) 2. Vision-based summarization 3. Adaptive query processing 4. Intelligent page selection 5. Response synthesis
| Variable | Description | Default |
|---|---|---|
| OPENAI_API_KEY | OpenAI API key | None |
| ANTHROPIC_API_KEY | Anthropic API key | None |
| OPENROUTER_API_KEY | OpenRouter API key | None |
| DOCPIXIE_PROVIDER | AI provider | openai |
| DOCPIXIE_STORAGE_PATH | Storage directory | ./docpixie_data |
| DOCPIXIE_JPEG_QUALITY | Image quality (1-100) | 90 |
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |