Create a Knowledge Base component - Amazon SageMaker Unified Studio

Amazon SageMaker Unified Studio is in preview release and is subject to change.

Create a Knowledge Base component

You can create a Knowledge base as a component in an Amazon Bedrock IDE project. If you are creating an app, you can also create a Knowledge Base when you configure the app. When you create a Knowledge Base, you choose data source which can be a document or a web crawler example, see Create a flow app. You can also how the Knowledge Base should parse the data in the data source.

To create a Knowledge Base
  1. Navigate to the Amazon SageMaker Unified Studio landing page by using the URL from your admininstrator.

  2. Access Amazon SageMaker Unified Studio using your IAM or single sign-on (SSO) credentials. For more information, see Access Amazon SageMaker Unified Studio.

  3. Choose the Build menu at the top of the page.

  4. In the MACHINE LEARNING & GENERATIVE AI section, choose My apps.

  5. In the Select or create a new project to continue dialog box, select the project that you want to use.

  6. In the left pane, choose Asset gallery.

  7. Choose My components.

  8. In the Components section, choose Create component and then Knowledge Base. The Create Knowledge Base pane is shown.

  9. For Name, enter a name for the Knowledge Base.

  10. For Description, enter a description for the Knowledge Base.

  11. In Add data sources, do one of the following:

    • Use a document as a data source by doing the following:

      1. Choose Local file.

      2. Choose Click to upload and upload the document that you want the Knowledge Base to use. Alternatively, add your source documents by dragging and dropping the document from your computer.

      For more information, see Document data source.

    • Use a web crawler as a data source by doing the following:

      1. Choose Web crawler.

      2. Provide the Source URLs of the URLs you want to crawl. You can add up to 9 additional URLs by selecting Add Source URLs. By providing a source URL, you are confirming that you are authorized to crawl its domain.

      3. (Optional) Choose Specify web crawler configs to make the following optional configuration changes:

  12. Choose Back to leave the web crawler configuration pane.

  13. For parsing Choose either default parsing or choose parsing with foundation model.

  14. If you choose parsing with foundation model, do the following:

    1. For Choose a foundation model for parsing select your preferred foundation model. You can only choose models that your administrator has enabled for parsing. If you don't see a suitable model, contact your administrator.

    2. (Optional) Overwrite the Instructions for the parser to suit your specific needs.

  15. (Optional) For Embeddings model, choose a model for converting your data into vector embeddings, or use the default model.

  16. Choose Create to create the Knowledge Base.

  17. Use the Knowledge Base in an app, by doing one of the following: