Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files- search_agent.py +3 -4
- 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,
|
| 9 |
-
"
|
| 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
|
| 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,
|
| 21 |
"- Extract URLs from the research summaries provided to you\n"
|
| 22 |
-
"- At the end of your report, include a '## References' section
|
| 23 |
-
"- Format
|
|
|
|
| 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, "
|