Skip to content

Add global variable to access the challenge within Jinja scripts #2031

@kkharbas

Description

@kkharbas

Would be helpful to add a global variable carrying the challenge to use in Jinja scripts.

e.g.

"indices": [
    {
      "name": "msmarco-v2",
      {%- if challenge == 'hybrid-search-queries-dsl-and-esql'-%}
      "body": "index-vectors-with-text-mapping.json"
      {%- else -%}
      "body": "index-{{ mapping_type | default("vectors-only") }}-mapping.json"
      {%- endif -%}
    }
  ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions