Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -591,7 +591,7 @@ Question: "{question}"
|
|
591 |
|
592 |
{f"URL Content Available: {url_context[:500]}..." if url_context else "No URL content available."}
|
593 |
|
594 |
-
Respond with only "SEARCH" or "NO_SEARCH" followed by a brief reason (max 20 words).
|
595 |
|
596 |
Example responses:
|
597 |
- "SEARCH - Current weather data needed"
|
@@ -633,8 +633,11 @@ Example responses:
|
|
633 |
|
634 |
answer_prompt = f"""You are a general AI assistant. I will ask you a question.
|
635 |
YOUR ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
|
636 |
-
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
637 |
-
|
|
|
|
|
|
|
638 |
{context_section}
|
639 |
|
640 |
Question: {question}
|
@@ -701,7 +704,7 @@ Answer:"""
|
|
701 |
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
702 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
703 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
704 |
-
Do
|
705 |
|
706 |
Question: {question}
|
707 |
|
|
|
591 |
|
592 |
{f"URL Content Available: {url_context[:500]}..." if url_context else "No URL content available."}
|
593 |
|
594 |
+
If you cannot provide an answer, reply with "NO_SEARCH". Respond with only "SEARCH" or "NO_SEARCH" followed by a brief reason (max 20 words).
|
595 |
|
596 |
Example responses:
|
597 |
- "SEARCH - Current weather data needed"
|
|
|
633 |
|
634 |
answer_prompt = f"""You are a general AI assistant. I will ask you a question.
|
635 |
YOUR ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
|
636 |
+
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
637 |
+
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
638 |
+
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
639 |
+
Do not add a dot after the numbers.
|
640 |
+
Do not report on your thoughts. Do not provide explanations.
|
641 |
{context_section}
|
642 |
|
643 |
Question: {question}
|
|
|
704 |
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
705 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
706 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
707 |
+
Do not report on your thoughts. Do not provide explanations.
|
708 |
|
709 |
Question: {question}
|
710 |
|