Kiln AI Docs
Kiln Website
  • Welcome to Kiln AI
  • Docs
    • Quickstart
    • Models and AI Providers
    • Synthetic Data Generation
    • Fine Tuning Guide
    • Evaluations
    • Guide: Train a Reasoning Model
    • Reasoning & Chain of Thought
    • Prompts
    • Reviewing and Rating
    • Collaboration
    • Organizing Datasets
    • Structured Data / JSON
    • Keyboard Shortcuts
    • Privacy
    • Repairing Responses
    • Troubleshooting & Logs
    • Productionizing Kiln
    • Contact Us
  • Developers
    • Python Library Setup
    • Rest API
    • Kiln Data Model
Powered by GitBook
On this page
  • Option 1: [Recommended] Replicate Kiln Prompts and Requests in the Framework of your Choice
  • Option 2: [Alpha] Use the Kiln Python Library
  1. Docs

Productionizing Kiln

How to take ideas from the lab (Kiln) into your product

PreviousTroubleshooting & LogsNextContact Us

Last updated 5 days ago

Kiln is a great place to rapidly experiment with many models, providers, fine-tunes, and prompts.

Once you've found the ideal way to run your AI workload, you are ready to create (or iterate) on your product. This guide walks through the options for creating prodcuts from Kiln projects.

Option 1: [Recommended] Replicate Kiln Prompts and Requests in the Framework of your Choice

Every model request sent from Kiln is logged to ~/.kiln_ai/logs/model_calls.log . This includes the messages and any parameters sent to the API (model, temperature, reasoning, etc). It even includes a curl command to replicate the call Kiln made from the command line.

You can use the data in this log to exactly replicate any Kiln request in the language/framework of your choice. You can choose which tech-stack makes sense for your product; anything from simple HTTP requests, to integrating provider libraries (pip install openai), to integrating into your app/process.

Option 2: [Alpha] Use the Kiln Python Library

The MIT open-source powers all of the requests in the Kiln app. You can use it in your app, pointing to the Kiln project of your choice. See the library docs for details.

The python library has not yet reached v1.0 and is rapidly changing. We don't recommend it for production usage at this time. We suggest the approach above instead.

However, it might be a good fit for rapid prototyping where your workflows are coupled with Kiln.

llama.cpp
Kiln python library