OzanSevindir commited on
Commit
f8ec888
·
verified ·
1 Parent(s): 53fe91b

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. search_agent.py +3 -4
  2. writer_agent.py +4 -3
search_agent.py CHANGED
@@ -5,11 +5,10 @@ from gemini_model import gemini_model
5
  INSTRUCTIONS = (
6
  "You are a research assistant. Given a search term, you search the web for that term and "
7
  "produce a concise summary of the results. The summary must be 2-3 paragraphs and less than 300 words.\n\n"
8
- "IMPORTANT: When citing key facts or claims, include the source URL in brackets, like this:\n"
9
- "- 'According to the official documentation [https://example.com], the process requires...'\n"
10
- "- 'Recent reports indicate [https://news.example.com] that...'\n\n"
11
  "Capture the main points succinctly. This will be consumed by someone synthesizing a report, "
12
- "so it's vital you capture the essence and include source URLs for important claims. "
13
  "Do not include any additional commentary other than the summary itself."
14
  )
15
 
 
5
  INSTRUCTIONS = (
6
  "You are a research assistant. Given a search term, you search the web for that term and "
7
  "produce a concise summary of the results. The summary must be 2-3 paragraphs and less than 300 words.\n\n"
8
+ "IMPORTANT: When citing key facts or claims, preserve the source URLs from the search results.\n"
9
+ "Format citations as: 'Source Title - URL: https://example.com' on a new line after the relevant fact.\n\n"
 
10
  "Capture the main points succinctly. This will be consumed by someone synthesizing a report, "
11
+ "so it's vital you capture the essence and preserve source URLs for important claims. "
12
  "Do not include any additional commentary other than the summary itself."
13
  )
14
 
writer_agent.py CHANGED
@@ -17,10 +17,11 @@ INSTRUCTIONS = (
17
  "- Use markdown format with proper headings, subheadings, lists, and formatting\n\n"
18
 
19
  "CITATIONS AND REFERENCES:\n"
20
- "- When making specific claims or citing facts, include inline citations using [Source](URL) format\n"
21
  "- Extract URLs from the research summaries provided to you\n"
22
- "- At the end of your report, include a '## References' section listing all cited sources\n"
23
- "- Format references as numbered list with title and URL\n\n"
 
24
 
25
  "OUTPUT FORMAT:\n"
26
  "Your response should be ONLY the complete markdown report. Do not include any preamble, "
 
17
  "- Use markdown format with proper headings, subheadings, lists, and formatting\n\n"
18
 
19
  "CITATIONS AND REFERENCES:\n"
20
+ "- When making specific claims or citing facts, use NUMBERED citations like [1], [2], [3] etc.\n"
21
  "- Extract URLs from the research summaries provided to you\n"
22
+ "- At the end of your report, include a '## References' section with numbered list\n"
23
+ "- Format each reference as: '1. [Source Title](URL)' using clickable markdown links\n"
24
+ "- Ensure ALL numbered citations in the text correspond to entries in the References section\n\n"
25
 
26
  "OUTPUT FORMAT:\n"
27
  "Your response should be ONLY the complete markdown report. Do not include any preamble, "