bk939448 commited on
Commit
89bb4f2
·
verified ·
1 Parent(s): 2920eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -15,7 +15,7 @@ from analytics import record_request, last_n_days_df, last_n_days_avg_time_df
15
 
16
  # --- Prompts ---
17
  PROMPT_NORMAL = """
18
- Based on the user's original query, provide a concise summary (3-4 important bullet points) of the following text. Focus only on the most critical information.
19
  USER'S QUERY: "{query}"
20
  TEXT TO SUMMARIZE:
21
  ---
@@ -28,10 +28,9 @@ As a meticulous research analyst, your task is to synthesize the information fro
28
  **VERY IMPORTANT:** Your top priority is to provide information relevant to this current date and the future. If the user's query is about a recurring event (like an exam), you MUST focus on the upcoming or current event.
29
  **User's Original Query:** "{query}"
30
  **Instructions:**
31
- 1. Combine information from different sources to create a coherent and detailed report.
32
  2. Cite source URLs inline, like this: "(Source: http://...)." The URL is provided in the text.
33
- 3. At the end of your report, create a "## Sources" section and list all the unique URLs you used.
34
- 4. Use clear markdown with headings and bold text.
35
  **Provided Search Results:**
36
  ---
37
  {context_text}
 
15
 
16
  # --- Prompts ---
17
  PROMPT_NORMAL = """
18
+ Based on the user's original query, provide a concise summary in shot form of the following text. Focus only on query releted information mention source url and Answer should be in correct order in timeline.
19
  USER'S QUERY: "{query}"
20
  TEXT TO SUMMARIZE:
21
  ---
 
28
  **VERY IMPORTANT:** Your top priority is to provide information relevant to this current date and the future. If the user's query is about a recurring event (like an exam), you MUST focus on the upcoming or current event.
29
  **User's Original Query:** "{query}"
30
  **Instructions:**
31
+ 1. Combine information from different sources to create a coherent and detailed report dont include your personal opinion.
32
  2. Cite source URLs inline, like this: "(Source: http://...)." The URL is provided in the text.
33
+ 3. In the result, give only query related details which are completely different from the topic of the query, ignore them and make a summary in the detailed summary in the order of the timeline. .
 
34
  **Provided Search Results:**
35
  ---
36
  {context_text}