Skip to content

Data Models

rait_connector.models.EvaluationInput

Bases: BaseModel

Input data for LLM evaluation.

Attributes:

Name Type Description
prompt_id str

Unique identifier for the prompt

prompt_url str

URL reference to the prompt

timestamp str

ISO 8601 timestamp

model_name str

Name of the LLM model used

model_version str

Version of the LLM model

query str

The user's input query/prompt

response str

The LLM's generated response

ground_truth str

Expected response for comparison

context str

Additional context provided to the LLM

environment str

Environment where prompt was executed

purpose str

Purpose of the evaluation

validate_timestamp(v) classmethod

Validate timestamp is in ISO 8601 format.

Parameters:

Name Type Description Default
v str

Timestamp string

required

Returns:

Type Description
str

Validated timestamp

Raises:

Type Description
ValueError

If timestamp format is invalid