> ## 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 Results Trend

> Eval score trend from the evalresult fact table — one series per
(source step, rubric), one point per scored execution, across EVERY
path that scores (workspace runs, API runs with run_evals, batch runs,
and later policy sampling).

pl_-prefixed targets chart the pipeline's executions; anything else
charts the custom processor's. Both hit their composite index
((team, pipeline|processor, created)). Capped at 5000 rows per window;
total_points reports the pre-group count so callers can see truncation.

Cached in Redis DB 3 for 5 minutes per (team, target, window).



## OpenAPI

````yaml https://www.datalab.to/openapi.json get /api/v1/eval_results/trend
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_results/trend:
    get:
      tags:
        - collections
      summary: Get Eval Results Trend
      description: |-
        Eval score trend from the evalresult fact table — one series per
        (source step, rubric), one point per scored execution, across EVERY
        path that scores (workspace runs, API runs with run_evals, batch runs,
        and later policy sampling).

        pl_-prefixed targets chart the pipeline's executions; anything else
        charts the custom processor's. Both hit their composite index
        ((team, pipeline|processor, created)). Capped at 5000 rows per window;
        total_points reports the pre-group count so callers can see truncation.

        Cached in Redis DB 3 for 5 minutes per (team, target, window).
      operationId: get_eval_results_trend_api_v1_eval_results_trend_get
      parameters:
        - name: target_id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            description: pl_ pipeline id or custom-processor id to chart
            title: Target Id
          description: pl_ pipeline id or custom-processor id to chart
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 365
            minimum: 1
            description: Trailing window in days
            default: 90
            title: Days
          description: Trailing window in days
        - 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/EvalResultTrendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    EvalResultTrendResponse:
      properties:
        series:
          items:
            $ref: '#/components/schemas/EvalResultTrendSeries'
          type: array
          title: Series
        total_points:
          type: integer
          title: Total Points
      type: object
      required:
        - series
        - total_points
      title: EvalResultTrendResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EvalResultTrendSeries:
      properties:
        kind:
          type: string
          title: Kind
          default: rubric
        source_step_type:
          type: string
          title: Source Step Type
        eval_rubric_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Eval Rubric Id
        rubric_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Rubric Name
        points:
          items:
            $ref: '#/components/schemas/EvalResultTrendPoint'
          type: array
          title: Points
      type: object
      required:
        - source_step_type
        - eval_rubric_id
        - rubric_name
        - points
      title: EvalResultTrendSeries
      description: |-
        One line on the chart: a (step, rubric) pair's per-run points, or a
        parse-quality series of daily buckets. ``kind`` keeps the grains from
        ever blending client-side.
    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
    EvalResultTrendPoint:
      properties:
        created:
          type: string
          format: date-time
          title: Created
        score:
          type: number
          title: Score
        pipeline_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pipeline Version
        eval_rubric_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Eval Rubric Version
        source:
          type: string
          title: Source
        apirequest_id:
          type: integer
          title: Apirequest Id
        eval_batch_run_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Eval Batch Run Id
        'n':
          anyOf:
            - type: integer
            - type: 'null'
          title: 'N'
        lookup_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Lookup Key
        input_filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Input Filename
        pipeline_execution_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Pipeline Execution Id
        parse_quality:
          anyOf:
            - type: number
            - type: 'null'
          title: Parse Quality
      type: object
      required:
        - created
        - score
        - pipeline_version
        - eval_rubric_version
        - source
        - apirequest_id
        - eval_batch_run_id
      title: EvalResultTrendPoint
      description: >-
        One scored execution's per-step fact — or, for kind="parse_quality"

        series, one DAILY bucket (created = day at noon UTC, score = day
        average,

        n = runs in the bucket, apirequest_id = 0 sentinel).
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````