Getting Started¶
Prerequisites¶
- Python 3.13+
- uv package manager
Setup¶
1. Clone the repository¶
2. Install dependencies¶
3. Configure your API key¶
API Key Required
Most examples use OpenAI's GPT-5.1. Ensure your API key has appropriate permissions and sufficient quota.
Bielik Example
The Bielik example uses a local model via Ollama and does not require an OpenAI key. See the Bielik setup for details.
Running Examples¶
Each example lives in its own directory and can be run independently:
See the Examples Overview for the full list and recommended learning path.
Troubleshooting¶
API Key Issues¶
- Ensure
OPENAI_API_KEYis set in your.envfile - Verify your key has appropriate permissions
- Check for rate limiting (503 errors)
Import Errors¶
- Run
uv syncto install all dependencies - Verify you're using Python 3.13+
Async Issues¶
- Some examples require async-compatible event loops
- On Windows, you may need to set the event loop policy
OCR-Specific Issues¶
- poppler not found: Install via your package manager (
brew install poppler/apt install poppler-utils/choco install poppler) - PDF conversion fails: Ensure the PDF is valid and readable
- Rate limiting: Reduce the semaphore value in
ocr_parsing/shared_fns.py
See individual example pages for specific setup requirements.