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

# Judge Catalog Rows

> Judge catalog rows against schema + quality criteria.

When catalog_id is provided, automatically loads the schema and the catalog's
readiness_config quality_prompt. The optional `prompt` field appends extra instructions.



## OpenAPI

````yaml /api-reference/openapi.json post /public/judge
openapi: 3.1.0
info:
  title: Rastro Public API
  description: >-
    Public API for enrichment, catalog management, workflows, activities,
    snapshots, taxonomy, and MCP integrations.
  version: 0.1.0
servers:
  - url: https://catalogapi.rastro.ai/api
security:
  - bearerAuth: []
paths:
  /public/judge:
    post:
      tags:
        - Enrich
      summary: Judge Catalog Rows
      description: >-
        Judge catalog rows against schema + quality criteria.


        When catalog_id is provided, automatically loads the schema and the
        catalog's

        readiness_config quality_prompt. The optional `prompt` field appends
        extra instructions.
      operationId: judge_catalog_rows_api_public_judge_post
      parameters:
        - name: X-Organization-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JudgeCatalogRowsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JudgeCatalogRowsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    JudgeCatalogRowsRequest:
      properties:
        rows:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Rows
          description: Rows to evaluate
        catalog_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Catalog Id
          description: Catalog ID — fetches schema and quality_prompt automatically
        schema:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Schema
          description: Inline schema (only needed if no catalog_id)
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
          description: Extra instructions (appended to catalog's quality_prompt if present)
        model:
          type: string
          title: Model
          description: 'Model preset: fast, medium, high'
          default: fast
        max_rows:
          type: integer
          maximum: 500
          minimum: 1
          title: Max Rows
          description: Max rows to judge per request
          default: 200
        images:
          anyOf:
            - additionalProperties:
                items:
                  type: string
                type: array
              type: object
            - type: 'null'
          title: Images
          description: 'Explicit image URLs per row index, e.g. {"0": ["https://..."]}'
      type: object
      required:
        - rows
      title: JudgeCatalogRowsRequest
      description: >-
        Request to judge catalog rows. Pulls schema + quality_prompt from
        catalog when catalog_id is provided.


        For multimodal judging (e.g. verifying images match product data), pass
        ``images``

        as a dict mapping row index (string) to a list of image URLs.  When
        images are

        present the judge uses a vision model automatically.
    JudgeCatalogRowsResponse:
      properties:
        judgments:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Judgments
          description: Per-row judgments from the LLM
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Model, row counts, etc.
      type: object
      title: JudgeCatalogRowsResponse
      description: Row-level quality judgments.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Rastro API key or user token

````