To set up and run the application for local development, follow these steps after configuring the server and database:
npm i
npm run devBefore committing, run npm run fix to apply quick styling corrections. For other linting scripts, please check package.json
The current app uses MongoDB as the database. For detailed information on setting up and managing the database, please refer to the server README.
There are two places in the app where the model endpoints are used. To enable these features, ensure that the appropriate environment variables are set.
- QA Test Creation: We support Ollama for model inferencing to create QA tests
- Test Run Pipeline: Although test run pipeline is handled by the server, in case you use WatsonX AI, you can select the model to evaluate from GUI dropdown by setting up the environment variables.
The models used by the application can be specified through the following environment variables:
NEXT_PUBLIC_JUDGE_MODEL: Model used for the LLM judge validation. Default model isllama3.3(llama3.3:70b).NEXT_PUBLIC_DESIRED_OUTPUT_MODEL: Model for desired ouptut. Default model ismistral-small3.1(mistral-small3.1:24b).NEXT_PUBLIC_TEST_DEFAULT_MODEL: Model for regression tests issue validation. Default model isgranite4:small-hNEXT_PUBLIC_TEST_DEFAULT_MODEL_DISPLAY: The same model as the above but a name to be displayed on the UI. Default value isgranite4:small-h
If you use Ollama for inference, please make sure that you have the model available on your machine.
Default inference parameters are on utils/constants.ts
By default, the app bypasses the authorization configured through NextAuth. To enable authorization, modify auth.ts file.