Welcome to Lexoid’s Documentation#
Lexoid is a multimodal library for downstream AI workflows. It provides flexible parsing for documents, web pages, images, and audio, alongside evidence-grounded browser automation.
Key Features#
Multiple parsing strategies (LLM-based and static parsing)
Automatic parsing strategy selection (
AUTOmode) with optional ML-based LLM auto-selectionRouting priorities:
speed,accuracy, andcostSupport for many LLM providers (OpenAI, Google Gemini, Anthropic, Mistral, Hugging Face, Together AI, OpenRouter, Fireworks)
Local LLM inference via Ollama, SmolDocling/granite-docling, and PaddleOCR-VL (no API key required)
Schema-constrained extraction (
parse_with_schema) acceptingdict,dataclass, or PydanticBaseModelLaTeX conversion (
parse_to_latex)Audio transcription to markdown (via Gemini)
Multi-format input: PDF, images (PNG/JPG/TIFF/BMP/GIF), HTML, DOCX, XLSX, PPTX, CSV, TXT, audio, and URLs
Recursive URL parsing
Table detection and markdown conversion
Hyperlink detection and preservation
Reference highlighting and bounding box extraction (
return_bboxes)Browse (Preview): A web operator for autonomous browser task automation.
Parallel processing via multiprocessing
Command-line interface (
lexoid/python -m lexoid)Permissive Apache 2.0 license
Supported API Providers#
Google (Gemini)
OpenAI
Anthropic (Claude)
Mistral (OCR models)
Hugging Face
Together AI
OpenRouter
Fireworks
Ollama (local inference)
Local models (SmolDocling/granite-docling, PaddleOCR-VL)