Skip to content
Navigation Menu

IBM Cloud

  • CatalogCatalog
  • Cost EstimatorCost Estimator
    • HelpHelp
      • Docs
Cookie Preferences
  • Log in
  • Sign up
  • Catalog
  • Cost Estimator
  • Help
    • Docs

  • Navigation settings

Error

Change theme

This feature is in early stage, some parts of the platform might not fully support different themes yet.

Themes
  1. Community registry

Retrieval Augmented Generation (RAG) Pattern
Community registry

Automate RAG deployment with supporting IBM Cloud and watsonx services, embed your enterprise data in generative AI solutions.

  • IBM
  • Date of last update: 09/16/2025
  • Docs
  • Details

    Type
    • Software
    Provider
    • IBM
    Category
    • AI / Machine Learning
    • Security
    Last updated
    • 09/16/2025
    Product version
    • v3.0.0
    Variation
    • Basic (Deploy on Code Engine)
    Est. deployment time:
    • 1h 37min
    Copy
    Copy
    Copy
    Copy
    Copy
    Copy
  • Docs

Details

Type
  • Software
Provider
  • IBM
Category
  • AI / Machine Learning
  • Security
Last updated
  • 09/16/2025
Product version
  • v3.0.0
Variation
  • Basic (Deploy on Code Engine)
Est. deployment time:
  • 1h 37min
Copy
Copy
Copy
Copy
Copy
Copy

Overview

Utilize data from your enterprise to achieve productivity gains in activities related to question/answer conversations, content search, summarization and generation. RAG can be deployed in multiple configurations and is applicable to various industry use cases and solutions.

This deployable architecture provides a comprehensive foundation for trust, observability, security, and regulatory compliance by configuring and deploying various services and a sample application for a RAG pattern, including:

  • Configuring IBM Cloud Account with best practices from IBM Cloud Framework for Financial Services
  • Deploying key and secrets management services for storage and management of encryption keys and secrets
  • Deploying controls for continuous compliance
  • Deploying observability services for application and platform logging and monitoring
  • Deploying a suite of watsonx services to provide generative AI RAG capabilities
  • Deploying content databases for storing vector embeddings of the documents and content search/retrieval
  • Deploying a sample application in a variety of run times including CI/CD/CC pipelines for secure application lifecycle management

The above configured and deployed services enable a secure and trustworthy deployment of generative AI applications on IBM Cloud.

The configurations are flexible and be changed to meet the needs for several types of RAG patterns depending on the chosen combination of technologies and services.

The generative AI RAG pattern services include:

  • watsonx.ai
  • watsonx.data (with Milvus)
  • watsonx.governance
  • watsonx Assistant
  • watsonx Orchestrate
  • Watson Discovery
  • Elasticsearch Enterprise and Platinum edition

The supporting services include:

  • Secrets Manager
  • Key Protect
  • Security and Compliance Center
  • Event Notifications
  • Logs
  • Monitoring
  • Object Storage
  • Continuous Delivery toolchains
  • Container Registry

A sample RAG application is deployed to Code Engine or Red Hat OpenShift cluster.

By leveraging this architecture, you can accelerate your deployment and tailor it to meet your unique business needs and enterprise goals.

Community uses
Last week: 3
Last month: 10
Views
Last week: 85
Last month: 363
Badges (1)
Terraform IBM Modules (TIM)

Badges

Product version

v3.0.0

Variation

Basic (Deploy on Code Engine)

Terraform IBM Modules (TIM): A collection of curated IBM Cloud Terraform modules. Learn more

Features and capabilities

RAG Pattern

Deploy a RAG pattern with supporting IBM Cloud and watsonx services, and a sample application to Code Engine or Red Hat OpenShift using Continuous Delivery.

Implement Security

The architecture ensures security by deploying Key Protect and Secrets Manager.

Achieve Regulatory Compliance

Ensures regulatory compliance by implementing CI/CD/CC pipelines, along with Security and Compliance Center Workload Protection for continuous compliance.

Ensure Observability

Provides observability by deploying services such as Logs and Monitoring for log analysis and tracking activity.

Establish Trust

Ensures trust by configuring the IBM Cloud account to align with compliance settings as defined in the Financial Services framework.

Select a variation

Select a variation

Reference architecture

Focus sentinel
Close

(1/14) | Reference architecture

Focus sentinel

Reference architecture

Getting support

This product is in the community registry, as such support is handled through the originated repo. If you experience issues please open an issue in that repository https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/issues. Please note this product is not supported via the IBM Cloud Support Center.

Summary

Retrieval Augmented Generation (RAG) Pattern

    12 modules, 32 resources
    • Cloud automation for App Configuration Fully configurable
      3 resources
      *
      • apprapp
        provided
          Resource Configuration
          Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
          location: us-south
          plan: basic
          service: apprapp
      • Resources not included in cost (2 / 3 resources)
          Resource List
          The following resources were not included in the cost estimate but might have an associated cost.
          ibm_config_aggregator_settings
          ibm_iam_trusted_profile_identity
    • Cloud automation for Security and Compliance Center Workload Protection Fully configurable
      2 resources
      *
      • e831e900-82d6-11ec-95c5-c12c5a5d9687
        *
          Resource Configuration
          Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
          location: us-south
          plan: graduated-tier
          service: sysdig-secure
          Usage costs
          Multi-Cloud CSPM Compute Instance Hours *
          $0.0000/Instance-Hours
          Node Hours *
          $0.0000/Instance-Hours
          VM Node Hours *
          $0.0000/Instance-Hours
      • Resources not included in cost (1 / 2 resources)
          Resource List
          The following resources were not included in the cost estimate but might have an associated cost.
          ibm_iam_trusted_profile_identity
    • Cloud automation for Event Notifications Standard
      4 resources
      *
      • Object Storage Bucket
        *
          Resource Configuration
          Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
          archive_enabled: false
          location: us-south
          locationIdentifier: region_location
          plan: standard
          storage_class: standard
          Usage costs
          Storage Capacity *
          $0.0000/GB
          Class A requests *
          $0.0052/1k API calls
          Class B requests *
          $0.0042/10k API calls
          Public Standard Egress *
          $0.0000/GB
      • dff97f5c-bc5e-4455-b470-411c3edbe49c
        provided
          Resource Configuration
          Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
          location: global
          plan: standard
          service: cloud-object-storage
      • ecdb4690-c2d8-11eb-bff1-4f7b9d2dfe41
        *
          Resource Configuration
          Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
          location: us-south
          plan: standard
          service: event-notifications
          Usage costs
          Ingested Events *
          $1.0800/Million Events
      • Resources not included in cost (1 / 4 resources)
          Resource List
          The following resources were not included in the cost estimate but might have an associated cost.
          ibm_cos_bucket_lifecycle_configuration
    • Cloud automation for Code Engine New Code Engine projects
      0 resources
      $0.00/mo
      • Cloud automation for Databases for Elasticsearch Standard
        1 resources
        $251.99/mo
        • databases-for-elasticsearch
          $251.99/mo
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            disk: 5120
            flavor: multitenant
            location: us-south
            members: 3
            plan: enterprise
            service: databases-for-elasticsearch
            Usage costs
            RAM (3 members) (12)$194.05
            $16.1710/GB
            Disk (3 members) (15)$9.42
            $0.6283/GB
            Virtual Processor Cores (3 members) (1.5)$48.51
            $32.3420/CPU
      • Cloud automation for Key Protect Standard
        1 resources
        *
        • ee41347f-b18e-4ca6-bf80-b5467c63f9a6
          *
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: tiered-pricing
            service: kms
            Usage costs
            Key versions free allowance (first 5 Key Versions) *
            $0.0000/Key Versions
            Key versions *
            $1.0763/Key Versions
      • Sample Retrieval Augmented Generation App Config Banking Application
        2 resources
        *
        • 59b735ee-5938-4ebd-a6b2-541aef2d1f68
          *
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: professional
            service: continuous-delivery
            Usage costs
            Authorized Users *
            $37.7000/Authorized Users
        • dff97f5c-bc5e-4455-b470-411c3edbe49c
          provided
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: global
            plan: standard
            service: cloud-object-storage
      • Cloud automation for Secrets Manager Standard
        1 resources
        $0.00/mo
        • ebc0cdb0-af2a-11ea-98c7-29e5db822649
          $0.00/mo
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: trial
            service: secrets-manager
            Usage costs
            Trial plan (1)$0.00
            $0.0000
      • DevSecOps Application Lifecycle Management Deploy to Code Engine
        1 resources
        $0.00/mo
        • Resources not included in cost (1 / 1 resources)
            Resource List
            The following resources were not included in the cost estimate but might have an associated cost.
            ibm_cr_namespace
      • Watsonx.ai SaaS with Assistant and Governance standard
        4 resources
        *$140.00/mo
        • 7045626d-55e3-4418-be11-683a26dbc1e5
          *$140.00/mo
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: plus
            service: conversation
            Usage costs
            Instance (1000 MAU included) (1)$140.00
            $140.0000/Instance
            Additional Monthly Active Users *
            $14.0000/100 MAU
            Monthly Active Users using voice *
            $9.0000/100 MAU
        • 51c53b72-918f-4869-b834-2d99eb28422a
          *
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: v2-standard
            service: pm-20
            Usage costs
            Capacity Unit-Hours *
            $0.5200/CUH
            Class 1 Resource Units *
            $0.0000/RU
            Class 2 Resource Units *
            $0.0000/RU
            Class 3 Resource Units *
            $0.0000/RU
        • 39ba9d4c-b1c5-4cc3-a163-38b580121e01
          *
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: us-south
            plan: professional-v1
            service: data-science-experience
            Usage costs
            Capacity Unit-Hours *
            $1.0200/CUH
        • dff97f5c-bc5e-4455-b470-411c3edbe49c
          provided
            Resource Configuration
            Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
            location: global
            plan: standard
            service: cloud-object-storage
      • Cloud automation for account configuration Standard
        0 resources
        $0.00/mo
        • Cloud automation for Observability Instances
          13 resources
          *
          • logs
            provided
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              location: us-south
              plan: standard
              service: logs
          • 090c2c10-8c38-11e8-bec2-493df9c49eb8
            *
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              location: us-south
              plan: graduated-tier
              service: sysdig-monitor
              Usage costs
              Additional Time series *
              $0.0000/Time series hour
              Additional Container Hours *
              $0.0007/Container Hours
              Additional API Calls *
              $0.0000/API Calls
              Node Hours *
              $0.0517/Node Hours
          • Object Storage Bucket
            *
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              archive_enabled: false
              location: us-south
              locationIdentifier: region_location
              plan: standard
              storage_class: smart
              Usage costs
              Storage Capacity *
              $0.0000/GB
              Class A requests *
              $0.0052/1k API calls
              Class B requests *
              $0.0052/10k API calls
              Public Standard Egress *
              $0.0000/GB
          • Object Storage Bucket
            *
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              archive_enabled: false
              location: us-south
              locationIdentifier: region_location
              plan: standard
              storage_class: smart
              Usage costs
              Storage Capacity *
              $0.0000/GB
              Class A requests *
              $0.0052/1k API calls
              Class B requests *
              $0.0052/10k API calls
              Public Standard Egress *
              $0.0000/GB
          • Object Storage Bucket
            *
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              archive_enabled: false
              location: us-south
              locationIdentifier: region_location
              plan: standard
              storage_class: smart
              Usage costs
              Storage Capacity *
              $0.0000/GB
              Class A requests *
              $0.0052/1k API calls
              Class B requests *
              $0.0052/10k API calls
              Public Standard Egress *
              $0.0000/GB
          • dff97f5c-bc5e-4455-b470-411c3edbe49c
            provided
              Resource Configuration
              Starting costs are based on this resource configuration. You can edit configurations after you add this product to a project, which might impact costs.
              location: global
              plan: standard
              service: cloud-object-storage
          • Resources not included in cost (7 / 13 resources)
              Resource List
              The following resources were not included in the cost estimate but might have an associated cost.
              ibm_cos_bucket_lifecycle_configuration (3)
              ibm_logs_outgoing_webhook
              ibm_metrics_router_route
              ibm_metrics_router_settings
              ibm_metrics_router_target
        • Total estimated cost
          *$391.99/mo
        Already have an account? Log in
        close icon

        IBM web domains

        ibm.com, ibm.org, ibm-zcouncil.com, insights-on-business.com, jazz.net, mobilebusinessinsights.com, promontory.com, proveit.com, ptech.org, s81c.com, securityintelligence.com, skillsbuild.org, softlayer.com, storagecommunity.org, think-exchange.com, thoughtsoncloud.com, alphaevents.webcasts.com, ibm-cloud.github.io, ibmbigdatahub.com, bluemix.net, mybluemix.net, ibm.net, ibmcloud.com, galasa.dev, blueworkslive.com, swiss-quantum.ch, blueworkslive.com, cloudant.com, ibm.ie, ibm.fr, ibm.com.br, ibm.co, ibm.ca, community.watsonanalytics.com, datapower.com, skills.yourlearning.ibm.com, bluewolf.com, carbondesignsystem.com, openliberty.io
        close icon
        About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement.  To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.