Skip to content

Commit

Permalink
Merge pull request rh-aiservices-bu#103 from rh-aiservices-bu/feature…
Browse files Browse the repository at this point in the history
…/enrich-database

enrich db - second pass
  • Loading branch information
guimou authored Jan 11, 2024
2 parents d32b1d7 + 7b82422 commit 29a521d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bootstrap/ic-shared-database/populate-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ spec:
# Create image bucket
bucket_name = "claim-images"
s3.create_bucket(Bucket=bucket_name)
try:
s3.head_bucket(Bucket=bucket_name)
except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == '404':
s3.create_bucket(Bucket=bucket_name)
# Upload original images to minio
for filename in os.listdir("insurance-claim-processing/bootstrap/ic-shared-database/images/original_images"):
Expand Down
11 changes: 10 additions & 1 deletion bootstrap/ic-shared-database/sql-script-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ data:
Policy Number: PT567890
',
'
The text is a letter of complaint from John T. Anderson to Prestige Insurances regarding an unresolved car insurance claim, #XYZ789. The incident occurred on January 15, 2024, when Anderson''s vehicle was hit by another driver, Samantha Reynolds, who ran a red light. The accident caused significant damage to Anderson's car, and he reported the claim immediately, providing all necessary details. However, he has experienced poor communication and a delayed response from Prestige Insurances. Anderson demands an explanation for the delay, transparency, and urgency in handling his claim. He threatens to escalate the matter to regulatory authorities and consider legal action if his concerns are not addressed promptly. Anderson requests a comprehensive update on the status of his claim within the next 48 hours.
The text is a letter of complaint from John T. Anderson to Prestige Insurances regarding an unresolved car insurance claim, #XYZ789. The incident occurred on January 15, 2024, when Anderson''s vehicle was hit by another driver, Samantha Reynolds, who ran a red light. The accident caused significant damage to Anderson''s car, and he reported the claim immediately, providing all necessary details. However, he has experienced poor communication and a delayed response from Prestige Insurances. Anderson demands an explanation for the delay, transparency, and urgency in handling his claim. He threatens to escalate the matter to regulatory authorities and consider legal action if his concerns are not addressed promptly. Anderson requests a comprehensive update on the status of his claim within the next 48 hours.
',
'Near the intersection of Maple Street and Oak Avenue in Rivertown',
'January 15, 2024, at approximately 3:45 PM',
Expand Down Expand Up @@ -225,4 +225,13 @@ data:
'The person sending the claim, Jane Doe, expresses feelings of anxiety and confusion regarding the car accident she was involved in. She is seeking guidance and assistance from AssuranceCare Inc. to help her navigate the process of filing an insurance claim and getting her vehicle repaired.'
);
-- IMAGES
INSERT INTO claims.original_images (image_name, image_key, claim_id) VALUES ('car1.jpg', 'original_images/1_1700087084_5f809e2a_car1.jpg', 1);
INSERT INTO claims.original_images (image_name, image_key, claim_id) VALUES ('car2.jpg', 'original_images/2_1700187120_b49918e5_car2.jpg', 2);
INSERT INTO claims.original_images (image_name, image_key, claim_id) VALUES ('car3.jpg', 'original_images/3_1700187120_b49918e5_car3.jpg', 3);
INSERT INTO claims.processed_images (image_name, image_key, claim_id) VALUES ('new_car1.jpg', 'processed_images/1_1700086614_cdfe1fac_new_car1.png', 1);
INSERT INTO claims.processed_images (image_name, image_key, claim_id) VALUES ('new_car2.jpg', 'processed_images/1_1700187172_eb6ba78d_new_car2.png', 2);
INSERT INTO claims.processed_images (image_name, image_key, claim_id) VALUES ('new_car3.jpg', 'processed_images/3_1700187181_1cafe160_new_car3.png', 3);

0 comments on commit 29a521d

Please sign in to comment.