ankush13r commited on
Commit
d1e8d6c
·
verified ·
1 Parent(s): 14d9d84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -27,12 +27,13 @@ print("BASE_URL: ", BASE_URL)
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
 
38
  client = OpenAI(
 
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
  - **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.
31
  - **redundant_search**: Only use `get_documents` when strictly necessary. Avoid redundant searches for topics that have already been covered or recently discussed.
32
+ - **external_info_only**: You must **not use internal memory or knowledge** to respond. All information provided should come solely from the documents retrieved using the `get_documents` tool.
33
+ - **no_info_found**: If `get_documents` does not return any information, you must inform the user that you are unable to find the answer.
34
+ - **missing_info**: If the information needed to answer the user's question is not already present in previous tool responses, you must call `get_documents` to retrieve the necessary content.
35
 
36
+ - **date**: Today’s date is **{date}**. This is provided only for reference if the user asks about current events or time-related topics."""
37
 
38
 
39
  client = OpenAI(