WIP: Configure deepeval and add first behavioural tests #2
Reference in New Issue
Block a user
Delete Branch "llm-eval-experiment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated dependencies: added deepeval to pyproject.toml, updated flake.nix with required packages, and added .envrc for local env var loading.
Integrated DeepEval as an LLM evaluation framework for testing the clan deployment planner agent, replacing earlier mock-only tests with real end-to-end evaluation.
Added a GEval helpfulness metric (deepeval_metrics.py) with a shared AGENT_CONTEXT description that frames evaluation criteria around the agent's actual job as generating clan NixOS service configuration proposals,
not shell commands or sysadmin instructions.
Implemented the first real capability test (test_agent_helpfulness.py): runs the full agent pipeline against a live LLM (Claude by default, other providers configurable), mocking only flake-dependent I/O and evaluates the response for helpfulness
Made the LLM provider configurable in the test suite — supports claude, ollama, and openai via a top-level PROVIDER constant
Updated Ollama model to qwen3:14b.
Included proposed NixOS service instances in evaluation output, so the helpfulness metric scores both the agent's message and the structured configuration it proposed.
Added logging to surface the full DeepEval comparison (input, agent message, proposed config, score, reason) in test output for easier debugging.
Expanded evaluation metrics: Added new DeepEval-based metrics and significantly extended the helpfulness test suite with more test cases covering a broader range of agent behaviors
Documented the test harness: Added a section to the README explaining how the LLM evaluation framework works and how to run it
[DRAFT] Configure deepeval and add mock tests to test suiteto WIP: Configure deepeval and add mock tests to test suiteWIP: Configure deepeval and add mock tests to test suiteto WIP: Configure deepeval and add first behavioural testsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.