Journal

Blog Test

nejaky uvod o com toto je cele

June 6, 2026
Back to journal

The standard Lorem Ipsum passage, used since 1966

"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC

"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"

1914 translation by H. Rackham

"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"

Why use n8n for LLM evaluation?

We’ll use n8n as an example for building your own LLM evaluation framework because it treats evaluation as a continuous, workflow-native practice rather than a one-off benchmark. With built-in and custom metrics, automated feedback loops, and ongoing monitoring, it shows how evaluation can directly support iterative improvement and production reliability.

Here are the key aspects of n8n’s flexible evaluation approach:

1. Straightforward implementation on the canvas

Traditional monitoring and testing tools, such as LangSmith, often come with a steep learning curve that requires configuring APIs, logging libraries, and external infrastructure. n8n eliminates this friction by bringing AI evaluation directly to its canvas.

This approach allows for straightforward and less error-prone implementations, relying on the visual, drag-and-drop interface you know and trust. You don't need to write custom Python scripts; you just need to connect nodes.

2. Evaluation as a dedicated workflow path

In n8n, an evaluation sequence is structured as a dedicated path within your existing workflow. This design is crucial because it ensures:

  • Separation of concerns: You can execute the testing sequence separately from your production triggers (like webhooks or schedules).
  • Focus on iteration: Developers can focus purely on testing, analysis, and metric calculation without disrupting the production logic that serves end-users.

3. Customizable inputs and metrics

The framework is highly flexible, allowing you to run a range of test inputs against your workflow and observe the outputs. Critically, the metrics applied are completely customizable. You can measure anything relevant to your specific use case, for example:

  • Output correctness: Is the generated answer factually accurate based on predefined criteria?
  • Safety and fairness: The presence of toxicity, bias, or alignment with safety guidelines.
  • Tool calling: Whether the AI agent correctly invoked the right external tool or function (essential for complex agents).
  • Deterministic metrics: Efficiency measurements like execution time or token count.

This collective data is essential for analyzing the effect of specific changes (e.g., swapping a model, modifying a system prompt) and comparing overall performance over time.

Key AI evaluation metrics and methods you can implement with n8n

LLM evaluation requires a nuanced approach, combining qualitative, context-aware assessments with quantifiable hard data. The flexibility of n8n allows you to implement both, often just by configuring the dedicated Evaluation node.

Here are the key methods you can deploy directly on your canvas:

1. LLM-as-a-Judge (the gold standard for open-ended tasks)

This is the standard approach for open-ended tasks where traditional metrics fail (e.g., creative writing or summarization). It involves using a highly capable model (like GPT-5 or Claude 4.5 Sonnet) to evaluate the quality of outputs generated by a target model (often a smaller, more efficient model).

How to implement it in n8n?

You no longer need to manually configure a "Judge" LLM and parse JSON responses. Instead, open the Evaluation node and select one of the AI-based metrics:

  • Correctness (AI-based): automatically scores (1-5) whether the answer’s meaning is consistent with your reference answer.
  • Helpfulness (AI-based): scores (1-5) whether the response successfully addresses the initial query.
  • Custom Metrics**:** If you need to test for something specific, like "Did the AI adopt a pirate persona?", you can use the Custom Metrics option to define your own criteria.

n8n's Set Metrics node settings

2. Evaluating complex agent workflows (RAG and tool use)

If your workflow uses Retrieval-Augmented Generation (RAG) or relies on the LLM to call external tools, you need to evaluate the entire system, not just the final text generation.

How to implement it in n8n:

  • Tool usage: Use the built-in Tools Used metric in the Evaluation node. This returns a score checking if the agent correctly triggered a tool call when expected.
  • RAG faithfulness: You can use the Correctness (AI-based) metric to verify that the generated answer aligns with the ground truth found in your documents.