Extract from a long document
The Quickstart extracts from a single sentence. Real inputs are
Use OpenAI models
LangExtract runs on Google Gemini by default. To use an OpenAI model instead,
Use local models with Ollama
Ollama runs language models on your own machine, so you can
Write prompts & examples
The prompt and the examples are the two inputs that most determine output
Work with results
lx.extract returns structured objects. This guide covers the common tasks you
Supply API keys
Cloud providers (Gemini, OpenAI) need a credential; local models via