Link Search Menu Expand Document Documentation Menu

You're viewing version 2.17 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

Automating configurations

Introduced 2.13

You can automate complex OpenSearch setup and preprocessing tasks by providing templates for common use cases. For example, automating machine learning (ML) setup tasks streamlines the use of OpenSearch ML offerings.

In OpenSearch 2.12, configuration automation is limited to ML tasks.

OpenSearch use case templates provide a compact description of the setup process in a JSON or YAML document. These templates describe automated workflow configurations for conversational chat or query generation, AI connectors, tools, agents, and other components that prepare OpenSearch as a backend for generative models. For custom template examples, see Sample templates. For OpenSearch-provided templates, see Workflow templates.

Key features

Workflow automation provides the following benefits:

  • Use case templates: Get started with predefined templates that outline the setup process for your general use cases.
  • Customizable workflows: Customize the workflow templates to your specific use case.
  • Setup automation: Easily configure AI connectors, tools, agents, and other components in a single API call.

Overview

Templates implement workflow automation in OpenSearch. You can provide these templates in JSON or YAML format. You can describe one or more templates with a sequence of steps required for a particular use case. Each template consists of the following elements:

  • Metadata: A name, description, use case category, template version, and OpenSearch version compatibility range.
  • User input: Parameters expected from the user that are common to all automation steps across all workflows, such as an index name.
  • Workflows: One or more workflows containing the following elements:
    • User input: Parameters expected from the user that are specific to the steps in this workflow.
    • Workflow Steps: The workflow steps described as a directed acyclic graph (DAG):
      • Nodes describe steps of the process, which may be executed in parallel. For the syntax of workflow steps, see Workflow steps.
      • Edges sequence nodes to be executed after the previous step is complete and may use the output fields of previous steps. When a node includes a key in the previous_node_input map referring to a previous node’s workflow step, a corresponding edge is automatically added to the template during parsing and may be omitted for the sake of simplicity.

Next steps

350 characters left

Have a question? .

Want to contribute? or .