Optional extras¶
The base install has Qdrant, the core file formats, recursive and semantic chunking, BM25 and hybrid search. Everything else is an optional extra, so a server installs only the clients it uses.
In Docker, set PAGELORE_EXTRAS when building the image (comma or space
separated, or all). The default is sentence-transformers:
PAGELORE_EXTRAS=fastembed,ocr SYSTEM_PACKAGES="tesseract-ocr" \
docker compose -f docker/docker-compose.yml up -d --build
GET /api/v1/data/file-types shows which file types are usable on the
running server, and which extra or program a missing one needs.
Vector databases¶
| Extra | Installs | For |
|---|---|---|
| (none) | qdrant-client |
QDRANT |
chroma |
chromadb |
CHROMA |
pinecone |
pinecone |
PINECONE |
weaviate |
weaviate-client |
WEAVIATE |
milvus |
pymilvus[milvus-lite] |
MILVUS (server or Milvus Lite) |
pgvector |
pgvector, psycopg |
PGVECTOR |
faiss |
faiss-cpu, numpy |
FAISS |
lancedb |
lancedb, pyarrow |
LANCEDB |
elasticsearch |
elasticsearch |
ELASTICSEARCH |
Embeddings, rerankers and LLMs¶
One extra per client library. Several providers share one.
| Extra | Installs | Used by |
|---|---|---|
sentence-transformers |
sentence-transformers, torch |
Local embeddings and cross-encoder rerankers |
fastembed |
fastembed |
Local ONNX embeddings and rerankers, no PyTorch |
openai |
openai |
OpenAI, Azure OpenAI, OpenRouter and every OpenAI-compatible server (embeddings and LLM) |
ollama |
ollama |
Ollama (embeddings and LLM) |
cohere |
cohere |
Cohere (embeddings, reranker, LLM) |
voyage |
voyageai |
Voyage (embeddings, reranker) |
gemini |
google-genai |
Gemini and Vertex AI (embeddings, reranker, LLM) |
mistral |
mistralai |
Mistral (embeddings, LLM) |
jina |
httpx |
Jina (embeddings, reranker) |
huggingface |
huggingface-hub, numpy |
Hugging Face (embeddings, LLM) |
bedrock |
boto3 |
AWS Bedrock (embeddings, reranker, LLM) |
anthropic |
anthropic |
Claude as the LLM |
rerank-http |
httpx |
HTTP rerankers: TEI, vLLM, llama.cpp, Infinity, LocalAI, Lemonade, LiteLLM, OpenRouter |
On Linux (and so in the Docker image), torch comes from the CPU-only
PyTorch index, which avoids about 3 GB of CUDA libraries. For a GPU, serve
the model with Ollama, TEI or vLLM and use their provider.
Sources and file types¶
| Extra | Installs | For |
|---|---|---|
s3 |
boto3 |
S3 and S3-compatible imports |
ocr |
pillow, pypdfium2, pytesseract |
Images and scanned PDF pages. Also needs the tesseract program |
audio |
faster-whisper |
Local audio and video transcription (not on Python 3.15 yet; use TRANSCRIPTION_PROVIDER=OPENAI there) |
parquet |
pyarrow |
Parquet, Feather/Arrow and ORC |
outlook |
extract-msg |
Outlook .msg. GPL-3.0 dependency (Pagelore is MIT) |
docling |
docling, torch, torchvision |
Docling as the main extractor. Its models (about 0.5 GB) download on first use |
gliner |
gliner, torch |
The gliner knowledge graph extractor. Its model (about 1 GB) downloads on first use |
tiktoken |
tiktoken |
Token-based chunk sizes and the token strategy. Downloads its encoding on first use |
System programs¶
Some file types need a program, not a Python package:
| Program | For | Install |
|---|---|---|
tesseract |
OCR (with the ocr extra) |
brew install tesseract / apt install tesseract-ocr tesseract-ocr-<lang> |
LibreOffice (soffice) |
Legacy .doc, .xls, .ppt |
brew install --cask libreoffice / apt install libreoffice-core |
In Docker, add Debian packages with SYSTEM_PACKAGES at build time.
Development¶
The dev dependency group (installed by a plain uv sync) adds pytest.
See Tests.