Prerequisite Please see here to get and set your API Key environment variable.
export LX_API_KEY=...
LLM Test Suite
Write custom LLM tests and integrate them into your CI/CD environment.Create the Test
First head over to lab.lytix.co/home/tests/ and create a new test.
{{ input }}
and {{ output }}
are placeholders that will be replaced with the actual input and output of the LLM interaction.Run the test
The following is some example code that runs the test we definedtest2
fail in our dashboard here, and reflect in our exit code

