Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence

Aspire 5
Results will update as you type.
  • What is Aspire?
  • Getting Started
  • Generative AI
  • Crawling Features
  • Rest API Usage
  • Configuration
  • How-to articles
  • Connectors
  • Publishers
  • Workflows
    • Admin UI - Workflows
    • Rest API - Workflows
    • Applications
    • Summarization
    • Canonical Workflows
      • Embeddings Canonical Workflow
      • MS Office Processing Canonical Workflow
      • Multimedia Processing Canonical Workflow
      • PDF Processing Canonical Workflow
      • SAGA Parser Tag Extraction Canonical Workflow
  • Aspire Tools
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
Embeddings Canonical Workflow
Updated Apr 24

    Embeddings Canonical Workflow

      • 1 Introduction
      • 2 Workflow configuration
        • 2.1 Configuration Variables
        • 2.2 Components Configuration
      • 3 Expected Input
        • 3.1 Job input
        • 3.2 Document Input 
      • 4 Workflow output
        • 4.1 Job Output 
        • 4.2 Document Output 
        • 4.3 SubJob Output 
      • 5 Limitations
      • 6 Errors and Troubleshooting
        • 6.1 409 and other throttling-related errors
        • 6.2 Resource not found errors
      • 7 Done!

      Introduction

      The Embeddings Canonical Workflow goal is to generate embedding vectors for the chunks included in the documents it processes.

      Currently, the workflow supports creating embedding vectors using the following options:

      ·       AWS Bedrock models

      ·       OpenAI-compatible models

      ·       OLlama

      ·       Switchboard

      ·       Skip the embeddings creation and only create the subjobs

       The Embeddings Canonical Workflow has multiple main stages: one stage for the workflow configuration and one stage for each of the supported embedding options.

      For the instructions below, please request and reference the following files:

      • “workflow_embeddings canonical workflow_export.aspire” and

      • “pom.xml“

       

      Workflow configuration

       Each Canonical Workflow has a configuration script where initialization variables can be set or changed according to the needs of the client. This script is always at the very beginning of the workflow stages.

      Also, all necessary external jars are preloaded in the provided “embeddings-workflow-1.0-all.jar” which needs to be loaded in the “External Resources” sections of the processing stages.

      Please request and reference the file “embeddings_workflow-1.0_all 1.jar“

       

      Configuration Variables

       chunksFieldName

      The name of the document field that contains the chunks to generate the embedding vectors. By default, the field name is “chunks”

      embeddingsType

      The name of the option to use to generate the embeddings; currently, only the options “bedrock”, “openai” and “none” are supported.

      bedrockModel

      In case of bedrock being used, enter the name of the model to use. Ignored if another option is configured.

      useDefaultCredentialsProvider

      Enable the use of the AWS default credentials provider; if not, AWS access and secret keys must be provided in the Bedrock script component

      Components Configuration

      Bedrock

      In case of using the “bedrock” option without enabling the “useDefaultCredentialsProvider”, the access and secret keys must be provided in the script component; also, the AWS region can be changed if needed.

      OpenAI

       For the “openai” option, the following parameters must be configured in the component.

       

       

       

       

      The apiKey must be entered in the “Scripts secrets” section of the Initialization tab.

      In the Scripts secrets section of the Initialization tab, the openai endpoint, the version (optional), and the model name must be specified.

       

       

       

       

      OLlama

       For OLlama, both endpoint and model fields must be specified.

       

       

       

       

       

       

      SwitchBoard

       For SwitchBoard, both endpoint and model fields must be specified.

       

       

       

       

      SwitchBoard also requires an “Application Id” to be configured. Do so in the “Processing” stage.

       

       

       

       

       

      Lastly, this version of SwitchBoard requires OAuth to be configured inside the “getToken” method of the “Processing” stage.

       

       

       

       

       

      Expected Input

      Job input

      Job variable name

      Job variable description

      No requirements regarding the job inputs.

      Document Input 

      Document variable name

      Document variable description

      chunks

      The objects containing the information of the text chunks to use to create the embeddings vector

      chunks.sectionName

      The name of the chunk section

      chunks.paragraph

      The text of the chunk

      chunks.chunkNumber

      The chunk number based on the original text

      chunks.NumberOfWords

      The number of words contained in the chunk paragraph.

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      Embeddings - 1.jpg

       

       

      Embeddings - 2.jpg

       

      Embeddings - 3.jpg

       

       

       

      Embeddings - 4.jpg
      Embeddings - 5.jpg
      Embeddings - 6.jpg
      Embeddings - 7.jpg

       

      Embeddings - 8.jpg
      Embeddings - 9.jpg
      image-20260411-224050.png

       

      Input example:

      image-20260411-224632.png

      Workflow output

      Job Output 

      Job variable name

      Job variable description

      No job output variables.

      Document Output 

      Document variable name

      Document variable description

      No document output variables.

      SubJob Output 

      Document variable name

      Document variable description

      id

      ID of the subjob created by combining the ID of the parent job + the chunk number

      parentId

      The ID of the parent job that was used to create the embedding vectors

      title

      The title of the chunk

      originalText

      The chunk of text that was used to create the vector.

      vectorContent

      The embedding vector created using the originalText field.

      image-20260411-225011.png

       

      Limitations

      No major limitations exists.

      Errors and Troubleshooting

      409 and other throttling-related errors

      Depending on the configured account, there will be limits regarding the number of tokens to process; if these limits are reached, errors like 409 will be thrown.

      Resource not found errors

      If the model’s name or API version is misconfigured, errors related to resource not found can happen; verify if the API version used has not been retired.

      Done!

      Your workflow is now configured and ready to be used.

       

       

      Copyright © 2024 Accenture

      Contact Us: SCAAssetsSupport@accenture.com

      {"serverDuration": 28, "requestCorrelationId": "76f1fc3067864d08bbc138f52cdc5c96"}