AIGrok is an advanced document analysis tool that uses AI to process, analyze, and extract information from documents.
- 📄 Process multiple document formats (PDF, TXT, etc.)
- 🤖 Advanced AI-powered analysis with OpenAI and Ollama support
- 🔍 Smart content extraction with OCR capabilities
- 💾 Result caching for performance
- 🛠️ Extensible provider system
- 📊 Comprehensive reporting
- 📝 Structured output support
- 🔄 Automatic model discovery
- 📈 Code coverage tracking
-
Install AIGrok:
pip install aigrok
-
Set up your configuration:
aigrok config init
-
Process a document:
aigrok process document.pdf
For detailed documentation, please see the docs directory:
- CLI Reference - Command-line interface guide
- API Documentation - API reference
- Configuration - Configuration guide
- Deployment - Deployment instructions
- Architecture - System architecture
- Contributing - Contribution guidelines
- Python 3.9+ (including 3.12)
- One of:
- Ollama with vision models installed
- OpenAI API key for GPT-4 Vision
- 4GB RAM minimum
- Internet connection for API access
pip install aigrok
git clone https://github.com/yourusername/aigrok.git
cd aigrok
pip install -e .
from aigrok import process_document
# Process a document
result = process_document("document.pdf")
print(result.text)
# Process with custom prompt
result = process_document(
"document.pdf",
prompt="Extract main topics",
model="llama2-vision"
)
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all contributors
- Built with Ollama
- Inspired by the need for better document analysis tools
- 90% of this project was written by AI using Cursor or Windsurf with Anthropic's Claude.