Create AI Skill: with 기술 자료에 기반함 모델 연결

This is the next logical step after creating a 기술 자료에 기반함 모델 연결. You would create an AI Skill: and connect it to a Grounded 모델 연결 from Amazon Bedrock.

A Pro Developer creates AI Skill: so the Bot Creators can use these in their automations and save time and effort.

AI Skill: are created by connecting to 모델 연결 the Pro Developer has access to, and fine-tuning prompts by testing them with different foundational models to find the best response that addresses the business ask. These AI Skill: are made available to developers for use and reuse to help accelerate creating automations across solutions.

전제 조건

A Pro Developer requires these roles and permissions to create and test AI Skill:.
  • Role: AAE_Basic, Pro Developer Custom role
  • Permission: Bot Creator

See AI 도구에 대한 역할과 권한

Other requirements:

Besides the roles and permissions the Pro Developer must be connected to a Bot 에이전트 22.60.10 and later. As part of testing the 모델 연결, you would have to run the on your desktop. Hence ensure the Bot 에이전트 is configured to your user. If you have to switch connection to a different Control Room, see: Control Room 인스턴스 간 기기 등록 전환.

프로시저

  1. Log in to the Control Room and navigate to Automation > Create new or ‘+’ icon and choose AI Skill:.
  2. Provide a name and description and click Create & edit to display a template outline.
  3. In the AI Skills screen, click Choose model connection to choose from the available list of 모델 연결 you have access to. You would choose the 기술 자료에 기반함 모델 연결 from Amazon Bedrock.
    These 모델 연결 are created by the Automation Admin and assigned to your user with a custom role.
  4. After selecting a 모델 연결, the AI Skill: is set up with the default parameter settings that is optimal for the chosen model. You can change the settings as required.
    The AI Skill: editor displays with default parameter values set by the model vendor which you can configure as required. These values can be configured when creating a Knowledge Base in Amazon Bedrock.

    The parameter values for creating a 프롬프트 is populated based on the selected foundational model.

    For details of parameter settings for the supported foundational models, see Understanding parameter settings for supported foundational models.

    주: You can set different parameter values to test and determine the values that are best suited for your use case. Changing the parameter values will influence the model response.
  5. Next, add a filter condition. This is an optional field that supports a JSON format for entering the filter value. For steps on creating a search filter in this format, see: How to generate a JSON Filter for Amazon Bedrock
    Adding a filter helps narrow down the model's search to the specific content segment within a large document in the Amazon 기술 자료.
  6. Now you can start creating an AI Skill: and add prompt inputs, as required. Let us use an example to walk you through the steps.
  7. In the Prompt field enter your 프롬프트 text with the input variables.
    What is the gift tax limit for the year 2024?

    Prior to this step, you would have uploaded tax rule PDF documents for the last 3 years along with their metadata files in the Amazon S3 bucket such as: tax_rules_2022.pdf, tax_rules_2023.pdf, tax_rules_2024.pdf, tax_rules_2022.pdf.metadata.json, tax_rules_2023.metadata.json.pdf, and tax_rules_2024.pdf.metadata.json.

    Each metadata.json file has a metadataAttribute by the name Year with values such as 2022, 2023, and 2024 for each metadata file.

    The response for the 프롬프트 text should be referenced from the tax_rules_2024.pdf document that can be made possible by adding the 2024 Year filter. This filter will narrow down the search to the matching tax_rules_2024.pdf file.

  8. Click out of the Prompt entry field.
    You can optionally add a 프롬프트 입력 by clicking Add prompt input.
  9. Click Get response to get a response from the model.
    주: 프롬프트 data details could contain PHI, PII or other sensitive data you choose to enter in the 프롬프트. We recommend being mindful of this when testing and executing a 프롬프트.
  10. Based on your provided filter condition, the Grounded model returns a response in the Response field, and additionally displays a Citations field displaying all citation references.

    Citations are chunks of information stating, which section of a document stored in the Amazon 기술 자료, the response is referenced from. When you click a citation, you can see the chunk of information under the Content section, in addition to the URI which is a URL to the document where it is stored in the Amazon 기술 자료.

    주: The number of citation responses returned by the model call can be configured by updating the Document retrieval count parameter for that 모델 연결. The response returns citations based on the number value you add for the Document retrieval count parameter.

    Optionally, you can add a filter JSON to query specific data matching the metadata. This helps narrow down the search to the relevant context with accuracy.

다음 단계

Your next step would be to check-in the AI Skill: to make it available to Citizen Developers using the AI Skill: package.

Why would you check-in an AI Skill:?

After creating an AI Skill:, check it into the Public folder. This will let the Pro Developer, and Citizen Developer use it from the AI Skill: package in the production environment.

A Task Bot, with one or multiple embedded AI Skill: can be added to a larger automation that would run a complete workflow scenario. You would create such a workflow in a Process Composer.

주: When you create or test an AI Skill: in the AI Skill screen, the success or failure details along with the model responses can be viewed in these navigation screens:
  • Administration > AI governance > AI Prompt log
  • Administration > AI governance > Event log
  • Administration > Audit log

See AI 거버넌스.

As the next step in your sequence of tasks, go to Task Bot에 AI Skill: 사용 and use the AI Skill: in an automation.