Tutorials and examples

Start with workflows that can be run and inspected end to end.

Best Answer

python -m pip install llmswap
export OPENAI_API_KEY="your-key"

llmswap --provider openai best \
  "Which rollout plan has the lowest operational risk?"

The default generates three independent drafts and one judge request on the same provider/model. Review disagreements and cautions before acting on the result.

Compare in the Arena

python -m pip install "llmswap[web]"
llmswap web

After comparing models, choose Create Best Answer. Existing candidate responses are reused, so this adds only the judge request.

Real customer-validation projects

The repository includes sample data, scripts, and output artifacts for:

Follow the customer demos guide for exact commands.

Build an interactive chat

Continue to Build a Chatbot for a minimal provider-neutral Python example.

Examples can make billable provider requests. Begin with non-sensitive sample data and review the selected provider’s data policies.


Table of contents


Copyright © 2026 LLMSwap. Distributed under the MIT license.

This site uses Just the Docs, a documentation theme for Jekyll.