View source on Github
Arize class to map up to 4 columns: total_token_count_column_name , prompt_token_count_column_name, response_token_count_column_name, andresponse_latency_ms_column_name
| Parameters | Data Type | Expected Type in Column | Description |
|---|---|---|---|
total_token_count_column_name | str | The contents of this column must be integers | Column name for the total number of tokens used in the inference, both in the prompt sent to the LLM and in its response |
promt_token_count_column_name | str | The contents of this column must be integers | Column name for the number of tokens used in the prompt sent to the LLM |
response_token_count_column_name | str | The contents of this column must be integers | Column name for the number of tokens used in the response returned by the LLM |
response_latency_ms_column_name | str | The contents of this column must be integers or floats | Column name for the latency (in ms) experienced during the LLM run |
Code Example
| Index | total_token_count | prompt_token_count | response_token_count | response_latency |
|---|---|---|---|---|
0 | 4325 | 2325 | 2000 | 20000 |