incorporate external context from DDG
This commit is contained in:
+4
-4
@@ -612,10 +612,10 @@ def insert_link_naturally(summary, source_name, source_url):
|
||||
target_para = random.choice([p for p in paragraphs if p.strip()])
|
||||
link_pattern = f'<a href="{source_url}">{source_name}</a>'
|
||||
phrases = [
|
||||
f"Learn more from {link_pattern}",
|
||||
f"{link_pattern} shares this insight",
|
||||
f"Discover more at {link_pattern}",
|
||||
f"Check out {link_pattern} for details"
|
||||
f"According to {link_pattern}", # Changed to a more neutral phrasing
|
||||
f"{link_pattern} notes this insight", # Adjusted phrasing
|
||||
f"Details shared by {link_pattern}", # Adjusted phrasing
|
||||
f"Source: {link_pattern}" # Simple attribution
|
||||
]
|
||||
insertion_phrase = random.choice(phrases)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user