Commit 43156e6a authored by Alp Deniz Ogut's avatar Alp Deniz Ogut
Browse files

Refine bullet point summary prompt

parent 5e7b2b48
Pipeline #14979 passed with stages
in 14 minutes and 42 seconds
Showing with 8 additions and 10 deletions
+8 -10
......@@ -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."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment