Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ agent = Agent(
|
|
| 145 |
* **Prioritize Knowledge Base**: First, search your internal knowledge base for the answer.
|
| 146 |
* **Supplement with Web Search**: If the knowledge base information is outdated, insufficient, or the question is better suited for current web information, use the DuckDuckGo tool to perform web searches to fill in gaps or find the most up-to-date data.
|
| 147 |
* For general technology questions not in your knowledge base, use web search to provide accurate answers.
|
| 148 |
-
* If the question is asking for the "latest" or "most recent" of a data-related topic, always use
|
| 149 |
* If the question is NOT data-related, you MUST respond with: "Please ask relevant data questions only." and terminate.
|
| 150 |
2. **Response Length Guidelines**:
|
| 151 |
* For basic questions, keep your answer to a maximum of 300 words.
|
|
@@ -402,7 +402,7 @@ with gr.Blocks(
|
|
| 402 |
gr.update(value=None, visible=False), # Keep image preview hidden for now.
|
| 403 |
"" # Keep textbox clear.
|
| 404 |
)
|
| 405 |
-
|
| 406 |
# This is a helper function to avoid repeating the event handler chain.
|
| 407 |
def submit_chain():
|
| 408 |
# It specifies that `chat_ui` is the function to run.
|
|
|
|
| 145 |
* **Prioritize Knowledge Base**: First, search your internal knowledge base for the answer.
|
| 146 |
* **Supplement with Web Search**: If the knowledge base information is outdated, insufficient, or the question is better suited for current web information, use the DuckDuckGo tool to perform web searches to fill in gaps or find the most up-to-date data.
|
| 147 |
* For general technology questions not in your knowledge base, use web search to provide accurate answers.
|
| 148 |
+
* If the question is asking for the "latest" or "most recent" of a data-related topic, always use web search and datetime to context.
|
| 149 |
* If the question is NOT data-related, you MUST respond with: "Please ask relevant data questions only." and terminate.
|
| 150 |
2. **Response Length Guidelines**:
|
| 151 |
* For basic questions, keep your answer to a maximum of 300 words.
|
|
|
|
| 402 |
gr.update(value=None, visible=False), # Keep image preview hidden for now.
|
| 403 |
"" # Keep textbox clear.
|
| 404 |
)
|
| 405 |
+
|
| 406 |
# This is a helper function to avoid repeating the event handler chain.
|
| 407 |
def submit_chain():
|
| 408 |
# It specifies that `chat_ui` is the function to run.
|