text_context = ""for text in text_results: if text_results: text_context = text_context + "**Article title:** " + text['article_title'] + "n" text_context = text_context + "**Section:** " + text['section'] + "n" text_context = text_context + "**Snippet:** " + text['text'] + "nn"