Skip to content

Commit 5fdd194

Browse files
vburckhardtin-1911
andauthored
feat: bump rag da version + associated extra parameters (#4)
* feat: add inputs * fix: remove problematic iam * fix: image link * fix: image link * feat: more inputs * feat: more wiring * feat: add alm DA in stack * feat: add watson * feat: add RAG config da to stack * feat: add RAG config da to stack * feat: configure watsonx plans * fix: add workaround for unique watson project name * Use project name and config name pattern to deploy many * chore: merge with master * feat: bump RAG DA version * fix: use prefix as registry namepsace for now * fix: set context strategy * docs: prefix * feat: change rag app image name --------- Co-authored-by: Igor Naumov <[email protected]>
1 parent f4fb7dd commit 5fdd194

File tree

3 files changed

+62
-5
lines changed

3 files changed

+62
-5
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Retrievel Augmented Generation (RAG) stack
1+
# Retrieval Augmented Generation (RAG) stack
22

33
To run the full stack. These steps will be updated as development progresses on the stack and underlaying DAs.
44

@@ -17,7 +17,11 @@ Click the "Add to project" button, and select create in new project.
1717
## 3. Set the input configuration for the stack
1818

1919
- Clone this repository locally - and checkout the dev branch.
20-
- Create a file with name ".def.json" with the following content. Important: ensure region is either us-south or eu-de as watsonx can only be deployed in those 2 locations for now.
20+
- Create a file with name ".def.json" with the following content.
21+
22+
**Important**:
23+
- Ensure region is either us-south or eu-de as watsonx can only be deployed in those 2 locations for now.
24+
- Ensure that the prefix is globally unique. It is used for the container registry namespace (which needs to be globally unique) in this alpha version.
2125

2226
```json
2327
{
@@ -68,3 +72,12 @@ DRY_RUN=true ./deploy-many.sh my-test-project RAG 'RAG-1|RAG-4|RAG-5'
6872
Tips: If deployment fail in one of the DA, you may need to remove the configuration name of the deployment that already passes from the pattern before re-running the script.
6973

7074
Tips: to accelerate iteration you may deploy only a subset of the configurations: the bare minimum are key management, security manager, watson saas, alm and rag configuration da. Base account, observability and SCC are not on the critical path to get the app running.
75+
76+
77+
# 5. Deploy the sample app
78+
79+
A few manual steps are required in the alpha version to trigger the deployment of the app:
80+
1. In the secret manager instance, in the default group, create an arbitrary secret named "ibmcloud-api-key". Put the used api key as secret.
81+
2. Follow the steps at https://cloud.ibm.com/docs/devsecops?topic=devsecops-devsecops-image-signing to generate a gpg key
82+
3. In the secret manager instance, in the default group, create an arbitrary secret named "signing_key". Put the signing key. See https://cloud.ibm.com/docs/devsecops?topic=devsecops-devsecops-image-signing#cd-devsecops-gpg-store-secretsmgr
83+
4. Navigate to the "Generative AI Sample App-CI-Toolchain" CD instance, click "ci-pipeline" and execute the "Manual Trigger".

ibm_catalog.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"label": "Retrieval Augmented Generation Pattern",
55
"name": "Retrieval_Augmented_Generation_Pattern",
6-
"version": "0.0.3-alpha",
6+
"version": "0.1.0-dev",
77
"product_kind": "solution",
88
"tags": [
99
"watson",

stack_definition.json

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,27 @@
255255
},
256256
{
257257
"name": "registry_namespace",
258-
"value": "namespace-rag"
258+
"value": "ref:../../inputs/prefix"
259259
},
260260
{
261261
"name": "ci_app_repo_clone_from_url",
262262
"value": "ref:../../inputs/sample_app_git_url"
263+
},
264+
{
265+
"name": "repositories_prefix",
266+
"value": "rag-sample"
267+
},
268+
{
269+
"name": "ci_app_name",
270+
"value": "rag-sample-app"
271+
},
272+
{
273+
"name": "ci_code_engine_context_dir",
274+
"value": ""
275+
},
276+
{
277+
"name": "ci_code_engine_image_name",
278+
"value": "code-engine-rag-app"
263279
}
264280
],
265281
"name": "5 - Generative AI Sample App - Code Engine Toolchain Config",
@@ -298,10 +314,38 @@
298314
{
299315
"name": "ci_pipeline_id",
300316
"value": "ref:../5 - Generative AI Sample App - Code Engine Toolchain Config/outputs/ci_pipeline_id"
317+
},
318+
{
319+
"name": "watson_machine_learning_instance_guid",
320+
"value": "ref:../4 - WatsonX SaaS services/outputs/watson_machine_learning_guid"
321+
},
322+
{
323+
"name": "watson_machine_learning_instance_resource_name",
324+
"value": "ref:../4 - WatsonX SaaS services/outputs/watson_machine_learning_name"
325+
},
326+
{
327+
"name": "watson_machine_learning_instance_crn",
328+
"value": "ref:../4 - WatsonX SaaS services/outputs/watson_machine_learning_crn"
329+
},
330+
{
331+
"name": "toolchain_resource_group",
332+
"value": "ref:../../inputs/resource_group_name"
333+
},
334+
{
335+
"name": "prefix",
336+
"value": "ref:../../inputs/prefix"
337+
},
338+
{
339+
"name": "resource_group_name",
340+
"value": "ref:../../inputs/resource_group_name"
341+
},
342+
{
343+
"name": "use_existing_resource_group",
344+
"value": true
301345
}
302346
],
303347
"name": "6 - Sample RAG app configuration",
304-
"version_locator": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.e2855bfd-352e-492b-bf4c-080d8d105c81"
348+
"version_locator": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.19041420-5bc9-4aca-9dc8-0cb432c80962"
305349
}
306350
]
307351
}

0 commit comments

Comments
 (0)