Generation
Modules:
| Name | Description | 
|---|---|
generation_steps | 
            
               | 
          
model_config | 
            
               | 
          
Classes:
| Name | Description | 
|---|---|
GenerationSteps | 
            
               A class for specifying generation steps for LLMs, including prompting.  | 
          
ModelConfig | 
            
               Configuration for a model to be used in an experiment.  | 
          
ModelRecord | 
            
               A record identifying a model.  | 
          
            GenerationSteps
  
      dataclass
  
    
            ModelConfig
  
      dataclass
  
    Configuration for a model to be used in an experiment.
Attributes:
| Name | Type | Description | 
|---|---|---|
name | 
            
                  str
             | 
            
               Returns the name of the model.  | 
          
record | 
            
                  ModelRecord
             | 
            
               Returns a record of the model configuration.  | 
          
Source code in evalsense/generation/model_config.py
                ModelRecord
              Bases: BaseModel
A record identifying a model.
Attributes:
| Name | Type | Description | 
|---|---|---|
name | 
            
                  str
             | 
            
               The name of the model.  | 
          
model_args_json | 
            
                  str
             | 
            
               The model arguments as a JSON string.  | 
          
generation_args_json | 
            
                  str
             | 
            
               The generation arguments as a JSON string.  | 
          
Methods:
| Name | Description | 
|---|---|
__eq__ | 
              
                 Checks if this record is equal to another record.  | 
            
__hash__ | 
              
                 Returns a hash of the record.  | 
            
__lt__ | 
              
                 Checks if this record is less than another record.  | 
            
Source code in evalsense/generation/model_config.py
                __eq__
Checks if this record is equal to another record.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                other
             | 
            
                  object
             | 
            
               The other record to compare with.  | 
            required | 
Returns:
| Name | Type | Description | 
|---|---|---|
bool |             
                  bool
             | 
            
               True if the records are equal, False otherwise.  | 
          
Source code in evalsense/generation/model_config.py
              __hash__
Returns a hash of the record.
Returns:
| Name | Type | Description | 
|---|---|---|
int |             
                  int
             | 
            
               The hash of the record.  | 
          
__lt__
Checks if this record is less than another record.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                other
             | 
            
                  object
             | 
            
               The other record to compare with.  | 
            required | 
Returns:
| Name | Type | Description | 
|---|---|---|
bool |             
                  bool
             | 
            
               True if this record is less than the other, False otherwise.  |