Examples

Practical code examples to help you build with SLM Builder.

Example Categories

Getting Started

Basic usage patterns including data loading, training, and export.

Database Integration

Connect to PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, and more.

API Integration

Fetch training data from REST APIs, GraphQL, and webhooks.

Advanced Examples

Production-ready examples including multi-model comparison, distributed training, and deployment.

Running Examples

All examples are self-contained and can be run independently:

1
2
3
4
5
# Install with examples dependencies
pip install slm-builder[all]

# Run an example
python examples/basic_qa.py

Prerequisites

Most examples require:

  • Python 3.8+
  • SLM Builder installed
  • Appropriate dependencies for specific features

See individual example pages for specific requirements.

Need Help?


Table of contents


Back to top

Copyright © 2025 SLM Builder. Distributed under the MIT License.