Skip to content

Commit 05e5668

Browse files
authored
docs: additional documentation (#82)
1 parent c7c5dbe commit 05e5668

File tree

6 files changed

+42
-7
lines changed

6 files changed

+42
-7
lines changed

README.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ To deploy this architecture, follow these steps.
2727
Before deploying the deployable architecture, ensure you have:
2828

2929
* Created an API key in the target account with sufficient permissions. The target account is the account that will be hosting the resources deployed by this deployable architecture. See [instructions](https://cloud.ibm.com/docs/account?topic=account-userapikey&interface=ui) Note the API key, as it will be used later. On evaluation environments, you may simply grant `Administrator` role on `IAM Identity Service`, `All Identity and Access enabled services` and `All Account Management` services. If you need to narrow down further access, for a production environment for instance, the minimum level of permissions is indicated in the [Permission tab](https://cloud.ibm.com/catalog/7df1e4ca-d54c-4fd0-82ce-3d13247308cd/architecture/Retrieval_Augmented_Generation_Pattern-5fdd0045-30fc-4013-a8bc-6db9d5447a52?kind=terraform&format=stack&version=32db3936-66fe-4b04-bbc8-61d5676a89f1#permissions) of the deployable architecture.
30-
* (Recommended) Created or access to a signing key, which is the base64 key obtained from `gpg --gen-key` (if not generated before or expired) and then exported via `gpg --export-secret-key <Email Address> | base64` command. See the [devsecops image signing page](https://cloud.ibm.com/docs/devsecops?topic=devsecops-devsecops-image-signing#cd-devsecops-gpg-export) for details. Key note of the key for later. The signing key is not required to deploy all of the Cloud resources created by this deployable architecture, but is necessary to get the automation to build and deploy the sample application.
30+
* (Recommended to ensure successful sample app deployment) Created or have access to a signing key, which is the base64 key obtained from `gpg --gen-key` (if not generated before or expired) and then exported via `gpg --export-secret-key <Email Address> | base64` command. See the [devsecops image signing page](https://cloud.ibm.com/docs/devsecops?topic=devsecops-devsecops-image-signing#cd-devsecops-gpg-export) for details. Keep note of the key for later. The signing key is not required to deploy all of the Cloud resources created by this deployable architecture, but is necessary to get the automation to build and deploy the sample application.
3131
* (Optional) Installed the IBM Cloud CLI's Project add-on using the `ibmcloud plugin install project` command. More information is available [here](https://cloud.ibm.com/docs/cli?topic=cli-projects-cli).
3232

33+
Ensure that you are familiar with the "Important Deployment Considerations" located at the bottom of this document.
34+
3335
## 2. Deploy the Stack in a New Project from Catalog
3436

3537
* Locate the [tile](https://cloud.ibm.com/catalog/7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3/architecture/Retrieval_Augmented_Generation_Pattern-5fdd0045-30fc-4013-a8bc-6db9d5447a52-global) for the Deployable Architecture in the IBM Cloud Catalog.
@@ -71,8 +73,8 @@ You should be directed to a screen looking like:
7173
![validate](./images/min/5-validate.png)
7274

7375
Two approaches to deploy the architecture:
74-
1. Through the UI - note that using the UI requires a large number of clicks each elements on the architecture stack.
75-
2. Automated - se the script `./deploy-many.sh` is provided.
76+
1. Through the UI
77+
2. Automated - `./deploy-many.sh` is provided.
7678

7779
### Approach 1: Deployment through the UI
7880

@@ -90,7 +92,7 @@ Two approaches to deploy the architecture:
9092

9193
4. Wait for deployment
9294

93-
5. Repeat step 1 for the next configuration in the architecture.
95+
5. Repeat step 1 for the next configuration in the architecture. Note that as you progress in deploying the initial base configuration, you will be given the option to validate and deploy multiple configuration in parallel.
9496

9597
### Approach 2: Run ./deploy-many.sh
9698

@@ -107,6 +109,39 @@ Tips: If deployment fail for one of the configuration, you may re-run the script
107109

108110
## 5. Post deployment steps
109111

110-
At this point, all of the infrastructure is deployed in the target account. The initial build for the sample app has also started in the DevOps service, and the app is deployed to IBM Cloud Code Engine.
112+
At this point, the infrastructure has been successfully deployed in the target account, and the initial build of the sample application has started in the newly-provisioned DevOps service.
113+
114+
### Monitoring the Build and Deployment
115+
116+
To monitor the build and deployment of the application, follow these steps:
117+
1. **Access the DevOps Toolchains View**: Navigate to the [DevOps / Toolchains view](https://cloud.ibm.com/devops/toolchains) in the target account.
118+
2. **Select the Resource Group and Region**: Choose the resource group and region where the infrastructure was deployed. The resource group name is based on the prefix and resource_group_name inputs of the deployable architecture.
119+
3. **Select the Toolchain**: Select "RAG Sample App-CI-Toolchain"
120+
![toolchain](./images/min/8-toolchain.png)
121+
4. **Access the Delivery Pipeline**: In the toolchain view, select ci-pipeline under Delivery pipeline
122+
![toolchain](./images/min/9-pipeline.png)
123+
5. **View the CI Pipeline Status**: The current status of the CI pipeline execution can be found under the "rag-webhook-trigger" section.
124+
125+
### Verifying the Application Deployment
126+
127+
Once the initial run of the CI pipeline complete, you should be able to view the application running in the created [Code Engine project](https://cloud.ibm.com/codeengine/projects).
128+
129+
130+
### Enabling Watson Assistant
131+
132+
After the application has been built and is running in Code Engine, there are additional steps specific to the sample app that need to be completed to fully enable Watson Assistant in the app. To complete the installation, follow the steps outlined in the [application README.md file](https://github.com/IBM/gen-ai-rag-watsonx-sample-application/blob/main/artifacts/artifacts-README.md).
133+
134+
135+
# 6. Important Deployment Considerations
136+
137+
## API Key Requirements
138+
139+
The deployable architecture can only be deployed with an API Key associated with a user. It is not compatible with API Keys associated with a serviceId. Additionally, it cannot be deployed using the Project trusted profile support.
140+
141+
## Known UI Issue: "Unable to validate your configuration"
142+
143+
After approving the configuration, you may encounter an error message stating "Unable to validate your configuration". This is a known UI issue that can be resolved by simply **refreshing your browser window**. This will allow you to continue with the deployment process.
144+
145+
## Using the ./deploy-many.sh Script
111146

112-
There are some remaining steps, specific to the sample app, that can be completed to fully enable Watson assistant in the app. To complete the installation - follow the steps at https://github.com/IBM/gen-ai-rag-watsonx-sample-application/blob/main/artifacts/artifacts-README.md
147+
The provided ./deploy-many.sh script is designed to deploy the stack of configurations as provided out of the box. If you make any changes to the stack definition in your project, besides specifying inputs, you should deploy your version through the Project UI instead of using the script.

deploy-many.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -x
3+
# set -x
44

55
function parse_params() {
66
PROJECT_NAME=$1

images/8-toolchain.png

25.5 KB
Loading

images/9-pipeline.png

38.5 KB
Loading

images/min/8-toolchain.png

38 KB
Loading

images/min/9-pipeline.png

72.5 KB
Loading

0 commit comments

Comments
 (0)