Hub
Pricing About
WorkflowWorkflow

03 Response control

LLMFew-shot learningPrompt EngineeringAspect-Based Sentiment AnalysisGenAI
+2
knime profile image
Draft Latest edits on 
Jul 2, 2025 1:02 PM
Drag & drop
Like
Download workflow
Workflow preview

This workflow demonstrates how a few-shot prompt can be used to perform aspect-based sentiment analysis an how to validate the model's response. It showcases response control techniques by guiding the model with labelled examples and checking whether the predicted output follows the intended format (string or JSON).

The workflow processes product review data for laptops, combining review content with few-shot examples to generate aspect-specific prompts. It then sends these prompts to an LLM, which is expected to identify both the aspect and the corresponding sentiment. After the response is received, validation steps compare the output against the original prompt, checking for consistency.

Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.5.0
  • Go to item
    KNIME AI ExtensionTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime
  • Go to item
    KNIME ExpressionsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime
  • Go to item
    KNIME JSON-ProcessingTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime
  • Go to item
    KNIME ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.5.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

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