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.
"""
ifcategory_textisnotNoneandcategory_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."