LLMWorkbook

Code Examples

This section contains practical examples demonstrating how to use LLMWorkbook with different providers and data formats.

Provider Examples

LLM Providers

Advanced OpenAI Features

Data Format Examples

Data Sources

Processing Examples

Workflow Patterns

Utilities

Quick Start

Most examples follow this pattern:

from llmworkbook import LLMConfig, LLMRunner, LLMDataFrameIntegrator

# 1. Configure provider
config = LLMConfig(provider="openai", ...)

# 2. Create runner
runner = LLMRunner(config)

# 3. Process data
integrator = LLMDataFrameIntegrator(runner=runner, df=df)
result = integrator.add_llm_responses(...)

Browse the individual files above to see complete, runnable examples for your specific use case.