LLM Nodes - LangWatch

Getting Started

To begin working with LLM nodes, first create a new workflow by navigating to the workflows page and clicking “Create New Workflow.” You can choose from available templates, but for learning purposes, the blank template is a good starting point. After naming your workflow, the system automatically creates three basic blocks: an entry node, an LLM call node, and an end node.

Understanding the LLM Node (0:34)

The LLM node is where the actual language model interaction happens. Each node has configurable properties accessible through the right sidebar, including:

You can quickly test an LLM node by using the “Run with manual input” option, which allows you to input test queries and see immediate results. The system will show you both the cost and duration of each execution.

Configuring Input and Output Fields (1:31)

One of the most important aspects of the LLM node is how you configure its inputs and outputs. The field names are meaningful as they’re passed directly to the LLM. You can:

Working with Datasets (2:10)

LLM nodes become particularly powerful when connected to datasets. Through the entry node, you can:

Improving Results with Instructions (2:58)

To get better responses from your LLM, you can add specific instructions in the node properties. These instructions help guide the LLM’s behavior and can include:

Creating Complex Workflows (4:25)

You’re not limited to single LLM nodes. You can create sophisticated workflows by:

Monitoring and Tracking (5:54)

Every LLM node execution is tracked in detail. You can:

Using Demonstrations (6:58)

To improve your LLM’s performance, you can provide example cases through demonstrations. In the node properties, you can:

Custom LLM Providers (7:27)

You’re not limited to default LLM providers. You can set up custom providers by:

  1. Accessing the “Configure available model” settings
  2. Enabling custom settings
  3. Adding your API keys
  4. Configuring custom or fine-tuned models

Appart from the main providers (OpenAI, Anthropic, Google, Groq, etc) the system also supports any OpenAI-compatible APIs, for example on your own self-hosted Llama. This is just the beginning of the Optimization Studio. The LLM Node serves as the foundation for more advanced features like image processing, evaluation, and automatic optimization, which are covered in the next tutorials.