> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.datalab.to/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate From Feedback

> Generate eval rubric from feedback items using LLM rewrite (no DB save).



## OpenAPI

````yaml https://www.datalab.to/openapi.json post /api/v1/eval_rubrics/generate_from_feedback
openapi: 3.1.0
info:
  title: Datalab API
  version: 0.0.1
servers:
  - url: https://www.datalab.to
    description: Datalab API
security: []
paths:
  /api/v1/eval_rubrics/generate_from_feedback:
    post:
      tags:
        - eval_rubrics
      summary: Generate From Feedback
      description: Generate eval rubric from feedback items using LLM rewrite (no DB save).
      operationId: generate_from_feedback_api_v1_eval_rubrics_generate_from_feedback_post
      parameters:
        - name: wos-session
          in: cookie
          required: false
          schema:
            type: string
            title: Wos-Session
        - name: datalab_active_team
          in: cookie
          required: false
          schema:
            type: string
            title: Datalab Active Team
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateFromFeedbackRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateFromFeedbackResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    GenerateFromFeedbackRequest:
      properties:
        feedback_items:
          items:
            $ref: '#/components/schemas/FeedbackItem'
          type: array
          maxItems: 20
          minItems: 1
          title: Feedback Items
      type: object
      required:
        - feedback_items
      title: GenerateFromFeedbackRequest
    GenerateFromFeedbackResponse:
      properties:
        eval_definition:
          additionalProperties: true
          type: object
          title: Eval Definition
      type: object
      required:
        - eval_definition
      title: GenerateFromFeedbackResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FeedbackItem:
      properties:
        block_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Block Id
        block_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Block Type
        page_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page Number
        content_snippet:
          type: string
          title: Content Snippet
          description: The block's current markdown/text
        feedback:
          type: string
          title: Feedback
          description: User's feedback text
        expected_output:
          anyOf:
            - type: string
            - type: 'null'
          title: Expected Output
        feedback_type:
          type: string
          enum:
            - incorrect
            - missing
            - formatting
            - other
          title: Feedback Type
          description: 'One of: incorrect, missing, formatting, other'
      type: object
      required:
        - content_snippet
        - feedback
        - feedback_type
      title: FeedbackItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````