Create Orthogonal Attributes And Levels

POST

Create new, independent (orthogonal) attributes and levels hat do not intersect with existing ones..

Parameters:

  • req: OrthogonalAttributesLevelsRequest object containing:
    • why_prompt: The main concept - prompt text
    • country: Target country
    • existing_attributes_levels: List of existing attributes and levels
    • new_attribute_count: Number of new attributes to generate (optional)
    • level_count: Number of levels per attribute (optional)
    • llm_model: Language model to use (optional)

Returns:

  • List of orthogonal attributes with their levels.

Example Response:

1[
2 {
3 "attribute": "Range",
4 "levels": [
5 "The car has a range of 200 miles",
6 "The car has a range of 300 miles",
7 "The car has a range of 400 miles",
8 "The car has a range of 500 miles"
9 ]
10 },
11 {
12 "attribute": "Charging Time",
13 "levels": [
14 "The car charges in 30 minutes",
15 "The car charges in 1 hour",
16 "The car charges in 2 hours",
17 "The car charges in 3 hours"
18 ]
19 }
20]

Raises:

  • HTTPException 404: If an error occurs during creation

Request

This endpoint expects an object.
why_promptstringRequired
countrystringRequired
existing_attributes_levelslist of objectsRequired
new_attribute_countintegerOptional>=1<=5Defaults to 4
level_countintegerOptional>=2<=5Defaults to 3
llm_modelenumOptionalDefaults to gpt4

Enum representing the llm model types used in the experiments.

Response

Successful Response

attributestring
levelslist of strings