Technology Tales

Notes drawn from experiences in consumer and enterprise technology

Six tools for evaluating and managing AI applications

Published on 3rd December 2026 Estimated Reading Time: 10 minutes

Building an AI application takes more than a model and a prompt, since the outputs need checking, the failures need explaining and the weak points need probing before anyone relies on the result. Six tools cover much of that ground: MLflow, Arize Phoenix, Langfuse, LangSmith, Promptfoo and DeepEval. They overlap on evaluation but differ in emphasis, with some centred on observability, some on testing and others on experiment management or agent development.

Telling them apart matters because a team may need only one, or may get more from a combination. Each tool is covered in turn below, with the claims checked against official documentation, before a closing look at how they might fit around clinical programming work.

MLflow and the Move from Machine Learning to Generative AI

Databricks announced MLflow on 5th June 2018 as an open-source platform for managing the machine learning lifecycle, long before large language models became part of everyday development. It remains the broadest of the six, since the project describes itself as Apache 2.0 licensed and backed by the Linux Foundation, with tracing, evaluation, prompt management, an AI gateway and a model registry sitting side by side. Its more recent releases added much of the generative AI side, which puts it in closer competition with the specialist observability tools.

Experiment tracking remains the foundation, with each run recording parameters, metrics and output files. Comparing three local models at sorting free-text support requests into categories would mean logging precision, recall and F1 score for each one and reading the results back later, rather than hunting through spreadsheets.

Once a model has been evaluated, the registry gives each registration an incrementing version number, and tags can carry metadata. Aliases add a mutable, named pointer to one version, so an alias such as champion can mark the production model while a candidate is tested, and an application can load models:/MyModel@champion instead of a fixed number. That is close in spirit to promoting a tested macro library while newer versions remain in development.

On the generative AI side, tracing is described as fully OpenTelemetry-compatible, and the @mlflow.trace decorator can wrap an ordinary Python function. A deterministic regular-expression checker can therefore be traced in the same way as an LLM-based classifier, which gives both approaches a common record. MLflow also tracks token usage and cost within traces, and its evaluation tools accept custom scorers alongside LLM judges.

New installations now use SQLite as the default backend store, with PostgreSQL available for larger deployments and a Docker Compose project provided for those who prefer containers, as the self-hosting documentation explains. A local installation needs little more than pip install mlflow.

Ollama exposes an OpenAI-compatible API that covers a subset of the OpenAI API, and MLflow's OpenAI integration switches on tracing with a single mlflow.openai.autolog() call. Pointing the OpenAI Python client at a local Ollama server and tracing the result through MLflow therefore looks feasible.

Databricks sells a managed version with Unity Catalog integration for enterprise governance, but the open-source edition runs without it. Neither should be mistaken for a validated regulatory system, so any records it produces need separate assessment before they are treated as an audit trail.

Phoenix, Langfuse and LangSmith for Observability

Observability tools answer a different question from test frameworks, since a trace describes what happened during one execution while a test compares the result with an expectation. A trace shows which prompt was sent, what the model returned and where an agent went wrong, and the two activities complement each other. Phoenix, Langfuse and LangSmith all cover tracing and evaluation, so the differences come down to their intent and licensing.

Phoenix describes itself as an open-source AI observability platform for experimentation, evaluation and troubleshooting, built on OpenTelemetry. Installation is pip install arize-phoenix followed by phoenix serve, and its prompt management covers version control and tagging. The server is released under the Elastic Licence 2.0, which allows free self-hosting, while Arize sells a separate managed product called Arize AX.

Langfuse concentrates on production tracing, evaluation and prompt management, with an MIT-licensed core. Its enterprise modules live in separate directories and need a licence key, although the core runs without them. Self-hosting is a heavier undertaking than with Phoenix, since the documentation lists web and worker containers backed by PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage.

LangSmith, from LangChain, is a commercial platform that centres on observability, evaluation and deployment for agents. LangChain's pricing details show a Developer plan with one free seat and 5000 base traces a month, while self-hosted and hybrid deployments sit in the Enterprise tier.

Promptfoo and Declarative Testing

Where observability tools describe runs, Promptfoo checks them. The project calls itself a CLI and library for evaluating and red-teaming LLM-based apps, and its tests live in declarative YAML configuration that can sit beside application code in Git. An evaluation combines prompts, providers, test cases and assertions, so three prompts, four models and 100 test cases would produce 1200 combinations to score. Results are cached to disk by default, and the --max-concurrency option caps the number of parallel requests.

Promptfoo is primarily a Node.js application. The installation guide asks for a recent Node.js release, recommends the current long-term support version and lists npm, npx and Homebrew as routes, while the command line reference covers promptfoo init to create a project, promptfoo eval to run it and promptfoo view to open the results in a browser.

The Ollama provider is native, so no LangChain, LiteLLM or gateway sits in between, and an identifier such as ollama:chat:qwen3:14b talks to a server at http://localhost:11434 by default. Free-text support requests have no fixed prefix to match on, which is where a model earns its place over a simple pattern check. A small configuration for classifying them with local models such as Qwen3.5 4B might look like the following.

prompts:
  - "Classify this support request as BILLING, FAULT or GENERAL. Reply with one word. Request: {{message}}"

providers:
  - ollama:chat:qwen3:14b
  - ollama:chat:llama3.1:8b
  - ollama:chat:qwen3.5:4b

tests:
  - vars:
      message: "I was charged twice for my December invoice."
    assert:
      - type: equals
        value: BILLING
  - vars:
      message: "The export button does nothing when I click it."
    assert:
      - type: equals
        value: FAULT

The available assertions include exact equality, required text, regular expressions, JSON validity, latency, cost, custom JavaScript or Python, semantic similarity and an LLM-graded rubric. For generated SQL, a test could demand a SELECT statement, forbid DROP TABLE and require a terminating semicolon. Passing those checks shows that conditions are met, but it does not prove that the code is functionally correct.

Red teaming is the other major strength. The red team documentation covers prompt injection, jailbreaking, privacy leaks including those from RAG context, excessive agency and tool-based risks, and the CLI adds promptfoo redteam run and promptfoo redteam report. Tests can be mapped to the OWASP Top 10 for LLM Applications through the OWASP preset, selected with owasp:llm, and to the Measure function of the NIST AI Risk Management Framework through the NIST preset, selected with nist:ai:measure. Promptfoo notes that some measures need evidence beyond an automated scan, and such tests complement access controls and application isolation rather than replacing them.

On 9th March 2026, OpenAI announced that it would acquire Promptfoo, and the project's repository now carries a banner saying it is part of OpenAI while remaining open source and MIT licensed. Telemetry is switched off with PROMPTFOO_DISABLE_TELEMETRY=1, update checks with PROMPTFOO_DISABLE_UPDATE and hosted generation with PROMPTFOO_DISABLE_REMOTE_GENERATION, while PROMPTFOO_SELF_HOSTED enables a self-hosted mode. None of these settings replaces network-level isolation where confidentiality requirements are strict.

DeepEval and Testing Inside Python

DeepEval takes the opposite route to Promptfoo by putting evaluation into Python code rather than YAML. The README likens it to `pytest` for LLM applications, and it is released under Apache 2.0 and installed with pip install -U deepeval. The deepeval test run command runs `pytest-style` test files and fits into CI/CD workflows, while evaluate() serves scripts and notebooks.

Built-in metrics include answer relevancy, faithfulness, hallucination, contextual precision, recall and relevancy, summarisation, tool correctness, task completion, bias, toxicity and step efficiency. G-Eval grades output against natural-language criteria, while the DAG metric builds a decision tree with deterministic branching, which suits mixed checks such as confirming a format before judging tone. For generated SQL, that could mean checking syntax first, then the required clauses, and only then handing the final judgement to an LLM.

The Ollama integration makes a local model available as the evaluator, and deepeval set-ollama --model=qwen3:14b sets it as the default provider for all metrics unless Python code overrides it. One model can then generate an explanation while another assesses it, which may reduce some shared failure modes but cannot guarantee independent judgement. Both workloads also compete for the same local computing resources.

A G-Eval score such as 0.9 should not be read as a calibrated probability that an answer is correct, so the criteria and the evaluator still need scrutiny. DeepEval uses goldens as reference cases holding an input and expected results, and its Synthesizer can generate more of them from documents. Generated data still needs verification, and for clinical statistical programming independently established reference results are preferable to using one unverified AI response to validate another.

Telemetry is disabled with DEEPEVAL_TELEMETRY_OPT_OUT=1, as set out in the data privacy documentation. The framework was built by the founders of Confident AI, whose separate platform is optional.

Choosing Tools for Testing AI-Assisted Clinical Programming

Phoenix and Langfuse centre on observability while LangSmith concentrates on agent development and deployment. MLflow pairs experiment tracking with model lifecycle management, whereas Promptfoo and DeepEval focus on testing. The categories overlap, since Promptfoo and DeepEval both support deterministic checks, LLM-based grading, regression testing, local execution and CI/CD integration. Promptfoo suits teams that want tests kept apart from application code and a strong security focus, whereas DeepEval suits Python projects where evaluation belongs in the test suite.

The tools can also be combined. Promptfoo could run acceptance tests, Phoenix could help diagnose a failing trace and MLflow could keep the wider record of how results vary across models and configurations, with DeepEval adding Python-based metrics. Each link in that chain needs its own integration and instrumentation work, so the combination should be planned rather than assumed.

For clinical statistical programming, candidate tasks include SDTM mapping suggestions, ADaM derivation explanations, RECIST logic and program documentation. A sound study would compare deterministic verification, LLM-based assessment and a hybrid with human scrutiny, using independently established reference results wherever feasible.

These tools also point towards a better model for working with agentic AI than approving and reviewing each output, which scales poorly and invites passive attention at the point of sign-off. Here the human effort moves earlier and becomes more active, since people define the acceptance criteria, choose the awkward test cases, write the checks and investigate the failures that surface in traces and results. A team that has done that work understands the behaviour of the system far better than a reviewer who sees only a stream of outputs, and it shares a body of evidence that colleagues can examine and challenge.

The benefit depends on people remaining fully present in the work, which the tooling can support but cannot supply. A suite written once and left running, with a green tick treated as the answer, is approval by another name, and an LLM judge brings blind spots of its own. Sampled human scrutiny, independently established reference results and regular maintenance of the tests keep the process honest.

None of these tools removes the need for acceptance criteria or for verifying consequential results. Their value lies in making testing, comparison and investigation more systematic.

Add a Comment

Your email address will not be published. Required fields are marked *

Please be aware that comment moderation is enabled and may delay the appearance of your contribution.

  • The content, images, and materials on this website are protected by copyright law and may not be reproduced, distributed, transmitted, displayed, or published in any form without the prior written permission of the copyright holder. All trademarks, logos, and brand names mentioned on this website are the property of their respective owners. Unauthorised use or duplication of these materials may violate copyright, trademark and other applicable laws, and could result in criminal or civil penalties.

  • All comments on this website are moderated and should contribute meaningfully to the discussion. We welcome diverse viewpoints expressed respectfully, but reserve the right to remove any comments containing hate speech, profanity, personal attacks, spam, promotional content or other inappropriate material without notice. Please note that comment moderation may take up to 24 hours, and that repeatedly violating these guidelines may result in being banned from future participation.

  • By submitting a comment, you grant us the right to publish and edit it as needed, whilst retaining your ownership of the content. Your email address will never be published or shared, though it is required for moderation purposes.