Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,8 @@ SYSTEM_PROMPT_TEMPLATE = """You are a helpful assistant. Follow these rules when
|
|
31 |
- If you already have enough context from earlier in the conversation, answer directly without using any external tools.
|
32 |
- If you lack sufficient context and need accurate factual information, you may call the `get_documents` function to search Wikipedia and retrieve relevant content.
|
33 |
- Only use `get_documents` when strictly necessary. Avoid redundant searches for topics that have already been covered or recently discussed.
|
|
|
|
|
34 |
- Keep the conversation natural and focused. Do not interrupt the flow unless external information is essential to provide a useful answer.
|
35 |
|
36 |
Today’s date is **{date}**. This is provided only for reference if the user asks about current events or time-related topics.
|
|
|
31 |
- If you already have enough context from earlier in the conversation, answer directly without using any external tools.
|
32 |
- If you lack sufficient context and need accurate factual information, you may call the `get_documents` function to search Wikipedia and retrieve relevant content.
|
33 |
- Only use `get_documents` when strictly necessary. Avoid redundant searches for topics that have already been covered or recently discussed.
|
34 |
+
- When forming a query for `get_documents`, you must **not add, assume, or infer new information** beyond what the user explicitly provided.
|
35 |
+
You may only rewrite the original question to improve clarity, reduce ambiguity, or enhance relevance—while fully preserving its original intent and meaning.
|
36 |
- Keep the conversation natural and focused. Do not interrupt the flow unless external information is essential to provide a useful answer.
|
37 |
|
38 |
Today’s date is **{date}**. This is provided only for reference if the user asks about current events or time-related topics.
|