semvec/pypi-packages huggingface dataset:
stache-ai-ollama 0.1.1
Ollama provider for Stache AI
License: MIT
Requires Python: >=3.10
Keywords: stache, rag, ai, ollama

# stache-ai-ollama

Ollama provider for [Stache AI](https://github.com/stache-ai/stache-ai).

## Installation

```bash
pip install stache-ai-ollama
```

## Usage

Install the package and configure the provider in your settings:

```python
from stache_ai.config import Settings

settings = Settings(
    llm_provider: "ollama"
)
```

The provider will be automatically discovered via entry points.

## Requirements

- Python >= 3.10
- stache-ai >= 0.1.0
- httpx>=0.25.0
stache-ai-ocr 0.1.2
OCR support for Stache AI document loaders
License: MIT
Requires Python: >=3.10
Keywords: stache, ocr, pdf, document-processing

# stache-ai-ocr

OCR support for Stache AI document loaders.

Provides a high-priority PDF loader that falls back to OCR for scanned documents.

## Installation

```bash
pip install stache-ai-ocr
apt install ocrmypdf  # System dependency required
```

## Usage

Once installed, the OCR loader automatically registers and takes priority over the basic PDF loader for all PDF files.

The loader will:
1. First attempt normal text extraction with pdfplumber
2. If no text is found (scanned PDF), fall back to OCR using ocrmypdf
3. Gracefully handle missing ocrmypdf (logs warning and returns empty text)

## System Requirements

- **ocrmypdf** system binary must be installed
  - Ubuntu/Debian: `apt install ocrmypdf`
  - macOS: `brew install ocrmypdf`
  - Includes Tesseract OCR engine

## Priority Override

This loader registers with priority 10, overriding the basic PDF loader (priority 0). This ensures OCR is used when available without affecting systems where it's not installed.