image_context = ""for image in image_results: if image_results: image_context = image_context + "**Article title:** " + image['article_title'] + "n" image_context = image_context + "**Section:** " + image['section'] + "n" image_context = image_context + "**Image Path:** " + image['image_path'] + "n" image_context = image_context + "**Image Caption:** " + image['caption'] + "nn"