You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TAI is equipped with the ability to measure the reliability and accuracy of its underlying Retrieval-Augmented Generation (RAG) agent. To simplify dataset creation and evaluation, this module provides customized evaluation functionality, ranging from creating evaluation datasets to implementing evaluation algorithms specifically designed for TAI.
4
+
5
+
## Features
6
+
7
+
-**Dataset Generation**: Seamlessly generate evaluation datasets tailored to the needs of the TAI system.
8
+
-**Analysis Tools**: Analyze generated datasets to uncover biases and visualize relationships using Sankey graphs.
9
+
10
+
## Setup
11
+
12
+
1.**Install Requirements**: Install the required dependencies by running the following command:
13
+
```sh
14
+
pip install -r requirements.txt
15
+
```
16
+
17
+
2.**Set Environment Variables**: Ensure the `OPENAI_API_KEY` is stored as an environment variable. You can add it to your `.bashrc`, `.zshrc`, or `.env` file for persistent configuration:
18
+
```sh
19
+
export OPENAI_API_KEY="your_api_key_here"
20
+
```
21
+
22
+
3.**Prepare Input Data**: Place your input JSON file in the following directory:
23
+
```
24
+
/evaluation/dataset_generate/input
25
+
```
26
+
27
+
## Dataset Generation
28
+
29
+
To generate an evaluation dataset, run the following command:
0 commit comments