Hub
Pricing About
NodeNode / Learner

OpenAI Chat Model Fine-Tuner

KNIME LabsAIModelsOpenAI
Drag & drop
Like

This node fine-tunes an OpenAI Chat Model using structured conversation data. It is useful when you want to adapt a model to a specific tone, domain, or workflow — for example, tailoring it for financial advice, customer support, or internal knowledge assistants.

Each row in the input table represents a message in a conversation. The table must contain at least 10 distinct conversations, and each must include at least one system message to define the assistant’s behavior. The fine-tuning process learns from examples: it does not memorize answers, but generalizes from the patterns in the assistant replies. You define how the assistant should respond to user inputs by providing example dialogues with the desired outputs.

Fine-tuned models are stored on OpenAI's servers and can afterwards be selected in the OpenAI LLM Selector . To delete a fine-tuned model, use the OpenAI Fine-Tuned Model Deleter node.

For pricing, see the OpenAI documentation .

To fine-tune a model for the finance domain, you might provide example conversations that emphasize clear, compliant financial guidance. Here is an example fine-tuning table:

IDRoleContent1systemYou are a financial assistant who gives concise, compliant guidance.1userShould I invest in tech stocks right now?1assistantI can't give specific advice, but tech stocks are volatile. Consider your risk profile.2userWhat's diversification?2assistantDiversification spreads assets across sectors to reduce risk.

Credential Handling : To pass your API key securely, use the Credentials Configuration node . If "Save password in configuration (weakly encrypted)" is not enabled, the credentials will not persist after closing the workflow.

Node details

Input ports
  1. Type: org.knime.python3.nodes.PythonBinaryBlobFileStorePortObject
    OpenAI Chat Model

    Configured OpenAI Chat Model which supports fine-tuning.

  2. Type: Table
    Fine-tuning Data

    The data should be presented across 3 columns:

    One column specifying a conversation ID, one representing the role of a message (system, assistant and user), and the third for the content of the message.

    The table has to include at least 10 conversations, each of which must contain at least one system message.

Output ports
  1. Type: org.knime.python3.nodes.PythonBinaryBlobFileStorePortObject
    OpenAI Chat Model

    Configured fine-tuned OpenAI Chat Model connection.

  2. Type: Table
    Fine-tuning Metrics

    Metrics to evaluate the fine-tuning performance. The values of the metrics are: 'train loss', 'train accuracy', 'valid loss', and 'valid mean token accuracy' for each step of training.

Extension

The OpenAI Chat Model Fine-Tuner node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits