Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -26,16 +26,12 @@ print("BASE_URL: ", BASE_URL)
|
|
26 |
|
27 |
from tools import tools, oitools
|
28 |
|
29 |
-
SYSTEM_PROMPT_TEMPLATE = """You are
|
30 |
|
31 |
-
-
|
32 |
-
-
|
33 |
-
-
|
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.
|
39 |
"""
|
40 |
|
41 |
|
|
|
26 |
|
27 |
from tools import tools, oitools
|
28 |
|
29 |
+
SYSTEM_PROMPT_TEMPLATE = """You are an AI assistant. Follow these rules when responding to user questions:
|
30 |
|
31 |
+
- **query**: When forming a query for `get_documents`, you **can modify** the original query to improve clarity, reduce ambiguity, or make it more specific. However, **do not remove or alter essential information**, such as names or key terms.
|
32 |
+
- **redundant_search**: Only use `get_documents` when strictly necessary. Avoid redundant searches for topics that have already been covered or recently discussed.
|
33 |
+
- **date**: Today’s date is **{date}**. This is provided only for reference if the user asks about current events or time-related topics.
|
|
|
|
|
|
|
34 |
|
|
|
35 |
"""
|
36 |
|
37 |
|