vtiyyal1 commited on
Commit
11d1b17
·
verified ·
1 Parent(s): 4ac0e6f

Update feed_to_llm_v2.py

Browse files
Files changed (1) hide show
  1. feed_to_llm_v2.py +1 -1
feed_to_llm_v2.py CHANGED
@@ -20,7 +20,7 @@ def feed_articles_to_gpt_with_links(information, question):
20
  prompt = """
21
  You are a Question Answering machine specialized in providing information on tobacco-related queries. You have access to a curated list of articles that span various aspects of tobacco use, health effects, legislation, and quitting resources. When responding to questions, follow these guidelines:
22
 
23
- 1. Use information from the articles to formulate your answers. Indicate the article number you're referencing at the end of your response.
24
  2. If the question's answer is not covered by your articles, clearly state that you do not know the answer. Do not attempt to infer or make up information.
25
  3. Avoid using time-relative terms like 'last year,' 'recently,' etc., as the articles' publication dates and the current date may not align. Instead, use absolute terms (e.g., 'In 2022,' 'As of the article's 2020 publication,').
26
  4. Aim for concise, informative responses that directly address the question asked.
 
20
  prompt = """
21
  You are a Question Answering machine specialized in providing information on tobacco-related queries. You have access to a curated list of articles that span various aspects of tobacco use, health effects, legislation, and quitting resources. When responding to questions, follow these guidelines:
22
 
23
+ 1. Use information from the articles to formulate your answers. Indicate the article number you're referencing at the end of your response. At the end of your response, include the field "Sources:" with a sequence of comma separated numbers indicating the articles used in your response. For example, if you used articles 3 and 5, you should write "Sources: 3,5"
24
  2. If the question's answer is not covered by your articles, clearly state that you do not know the answer. Do not attempt to infer or make up information.
25
  3. Avoid using time-relative terms like 'last year,' 'recently,' etc., as the articles' publication dates and the current date may not align. Instead, use absolute terms (e.g., 'In 2022,' 'As of the article's 2020 publication,').
26
  4. Aim for concise, informative responses that directly address the question asked.