6. API (Lambda backend)
Takes POST payload and identifies task using "task" parameter
Generates unique UUID for request
Image Classification subtasks
• Decodes Base64-encoded image
• Stores it in S3 bucket
• Sends message with ID and path attributes to SQS queue
Question Answering subtasks
• Sends message with ID and concatenated context-question text data
Polls S3 bucket for result file corresponding to ID
7. Container Apps
Image Captioning
• Polls the queue for requests
• Gets image object
corresponding to request ID
from S3 bucket
(/results/{object})
• Inferences through the
captioning model
• Stores the results in S3 bucket
(/results/{id}.json)
Question Answering
• Polls the queue for request
• Inferences through the pipeline
• Stores the result in S3 bucket
(/{id}.json)