> ## 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.

# Get Eval Differences

> Where the variants read one document differently, and which reading matches the page.

The differences live in the comparison's stored result, so they expire with it.



## OpenAPI

````yaml https://www.datalab.to/openapi.json get /api/v1/evals/{eval_id}/files/{file_id}/differences
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/evals/{eval_id}/files/{file_id}/differences:
    get:
      tags:
        - evals
      summary: Get Eval Differences
      description: >-
        Where the variants read one document differently, and which reading
        matches the page.


        The differences live in the comparison's stored result, so they expire
        with it.
      operationId: >-
        get_eval_differences_api_v1_evals__eval_id__files__file_id__differences_get
      parameters:
        - name: eval_id
          in: path
          required: true
          schema:
            type: integer
            title: Eval Id
        - name: file_id
          in: path
          required: true
          schema:
            type: integer
            title: File Id
        - 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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvalDifferencesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    EvalDifferencesResponse:
      properties:
        file_id:
          type: integer
          title: File Id
        variant_names:
          items:
            type: string
          type: array
          title: Variant Names
        differences:
          items:
            $ref: '#/components/schemas/EvalDifference'
          type: array
          title: Differences
        fields:
          items:
            $ref: '#/components/schemas/EvalField'
          type: array
          title: Fields
          default: []
      type: object
      required:
        - file_id
        - variant_names
        - differences
      title: EvalDifferencesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EvalDifference:
      properties:
        page:
          type: integer
          title: Page
        before:
          type: string
          title: Before
        after:
          type: string
          title: After
        readings:
          items:
            type: string
          type: array
          title: Readings
        winners:
          items:
            type: integer
          type: array
          title: Winners
        verdict:
          type: string
          title: Verdict
        decided_by:
          type: string
          title: Decided By
        weight:
          type: number
          title: Weight
        question:
          type: string
          title: Question
          default: ''
        boxes:
          items:
            items:
              type: number
            type: array
          type: array
          title: Boxes
          default: []
        description:
          type: string
          title: Description
          default: ''
      type: object
      required:
        - page
        - before
        - after
        - readings
        - winners
        - verdict
        - decided_by
        - weight
      title: EvalDifference
    EvalField:
      properties:
        path:
          type: string
          title: Path
        description:
          type: string
          title: Description
          default: ''
        values:
          items:
            type: string
          type: array
          title: Values
      type: object
      required:
        - path
        - values
      title: EvalField
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.