Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

* 5. Web App Deployment
** xref:05-01-application.adoc[5.1 Application overview]
** xref:05-03-web-app-deploy-application.adoc[5.3 Deploying the application via GitOps]
** xref:05-04-web-app-validating.adoc[5.4 Validating the application]
** xref:05-05-process-claims.adoc[5.5 Process claims with a pipeline]
** xref:05-02-web-app-deploy-application.adoc[5.3 Deploying the application via GitOps]
** xref:05-03-web-app-validating.adoc[5.4 Validating the application]
** xref:05-04-process-claims.adoc[5.5 Process claims with a pipeline]

* 6. Productization and Extrapolations
** xref:06-01-potential-imp-ref.adoc[6.1 Potential improvements and refinements]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For that, we will use a pipeline that can either be run ad-hoc or scheduled just

== What's inside the pipeline?

Inside your VSCode workbench (if you have closed/stopped it, please restart it), if you navigate to `parasol-insurance/lab-materials/05/05-05` you can see a variety of files. +
Inside your VSCode workbench (if you have closed/stopped it, please restart it), if you navigate to `parasol-insurance/lab-materials/05/05-04` you can see a variety of files. +

[.bordershadow]
image::05/05-process-claims-yaml.png[]
Expand Down Expand Up @@ -47,7 +47,7 @@ image::05/05-data-pipeline-storage.png[]
== Import the pipeline

To import the pipeline, start by downloading the `process-claims-pipeline.yaml` file locally.
Navigate to `parasol-insurance/lab-materials/05/05-05` to find it.
Navigate to `parasol-insurance/lab-materials/05/05-04` to find it.


* Start by downloading the `process-claims-pipeline.yaml` file locally to your laptop
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_claims(claim_ids: int):
export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python get_claims.py
''',
],
Expand All @@ -56,7 +56,7 @@ def get_accident_time():
'''export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python get_accident_time.py
''',
],
Expand All @@ -73,7 +73,7 @@ def get_location():
'''export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python get_location.py
''',
],
Expand All @@ -90,7 +90,7 @@ def get_sentiment():
'''export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python get_sentiment.py
''',
],
Expand All @@ -109,7 +109,7 @@ def detect_objects(detection_endpoint: str):
export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python detect_objects.py
''',
],
Expand All @@ -126,7 +126,7 @@ def summarize_text():
'''export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local
export IMAGES_BUCKET=$NAMESPACE
cd /shared-data
cd parasol-insurance/lab-materials/05/05-05
cd parasol-insurance/lab-materials/05/05-04
python summarize_text.py
''',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ deploymentSpec:
- "detection_endpoint=\"$0\"\n export detection_endpoint=$detection_endpoint\n\
\ export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n\
\ export IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n\
\ cd parasol-insurance/lab-materials/05/05-05\n python\
\ cd parasol-insurance/lab-materials/05/05-04\n python\
\ detect_objects.py\n "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
exec-get-accident-time:
Expand All @@ -49,7 +49,7 @@ deploymentSpec:
- -c
- "export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n \
\ export IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n \
\ cd parasol-insurance/lab-materials/05/05-05\n python get_accident_time.py\n\
\ cd parasol-insurance/lab-materials/05/05-04\n python get_accident_time.py\n\
\ "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
exec-get-claims:
Expand All @@ -62,7 +62,7 @@ deploymentSpec:
- "claim_id=\"$0\"\n export claim_id=$claim_id\n export\
\ POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n export\
\ IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n cd\
\ parasol-insurance/lab-materials/05/05-05\n python get_claims.py\n\
\ parasol-insurance/lab-materials/05/05-04\n python get_claims.py\n\
\ "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
exec-get-location:
Expand All @@ -72,7 +72,7 @@ deploymentSpec:
- -c
- "export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n \
\ export IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n \
\ cd parasol-insurance/lab-materials/05/05-05\n python get_location.py\n\
\ cd parasol-insurance/lab-materials/05/05-04\n python get_location.py\n\
\ "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
exec-get-sentiment:
Expand All @@ -82,7 +82,7 @@ deploymentSpec:
- -c
- "export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n \
\ export IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n \
\ cd parasol-insurance/lab-materials/05/05-05\n python get_sentiment.py\n\
\ cd parasol-insurance/lab-materials/05/05-04\n python get_sentiment.py\n\
\ "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
exec-initialize:
Expand All @@ -102,7 +102,7 @@ deploymentSpec:
- -c
- "export POSTGRES_HOST=claimdb.$NAMESPACE.svc.cluster.local\n \
\ export IMAGES_BUCKET=$NAMESPACE\n cd /shared-data\n \
\ cd parasol-insurance/lab-materials/05/05-05\n python summarize_text.py\n\
\ cd parasol-insurance/lab-materials/05/05-04\n python summarize_text.py\n\
\ "
image: quay.io/rh-aiservices-bu/rhoai-lab-insurance-claim-processing-pipeline:1.2
pipelineInfo:
Expand Down