diff --git a/rss_importer/plugin.py b/rss_importer/plugin.py index 8bc79df8aeba6dfc2b89095120c9c6c64889bdd4..f021466612d7fdb2279c0a0ebdd6e555c68a5098 100644 --- a/rss_importer/plugin.py +++ b/rss_importer/plugin.py @@ -279,16 +279,14 @@ class RSSImporter(PluginBase): def generate_feed_summary(self, category_text=None): index_query = "impactful, affecting a wide range of people, very recent, published today or yesterday." - instructions = " ".join( - [ - "Generate up-to 4 bullet point list of distinct signficant information from the news. Use only asteriks as bullets.", - "Start strictly with the 1 level bulleted list, comforming to markdown format. Do not generate intro or warm up words before or after the list. There should be no sub bullet points.", - "Each bullet point content should briefly describe the information, they should not contain more than 5 and under 20 words. Content of list items must not contain newlines.", - "Output only the one level bullet point list. Do not generate words other than the bullet point list. Do not generate sub items to the list.", - "Include source articles in format '(source: {Item Id})' just after the each bullet point sentence.", - "Make sure that the output is valid markdown and the list has no nested items", - ] - ) + instructions = """Generate a 4-item markdown bullet list from distinct news articles: + +* **Use asterisks as bullets**, ensuring valid markdown format. +* Each bullet should be **5-20 words**, representing a **unique article**. +* **No introduction, conclusion, sub-bullets, or nested items**. +* Append each with '(source: {Item Id})'. +Ensure the output is a **one-level bullet list** without additional text. +""" if category_text is not None and category_text != "all": index_query = f"{index_query} {category_text}" instructions += f" Keep the list strictly bounded by {category_text}. Do not include list items that are not closely related to the tags or categories."