Skip to main content

Generate Latent Variables Two Step

POST 

/api/v2/latent-variables/generate-latent-variables-two-step

Generate psychological traits with their measurement statements, pain points, and point detection statements based on a research context (why-prompt).

Args: req: The request containing the research question (why-prompt) and configuration.

Returns: GenerationResponse: The list of traits with their associated measurements + Likert scales, and the why prompt from which they were generated.

Raises: HTTPException 500: If an error occurs during generation. HTTPException 422: Output validation failed.

Request

Responses

Successful Response