Shreyas094 commited on
Commit
b2fec0b
·
verified ·
1 Parent(s): 6759c67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def determine_query_type(query: str, chat_history: str, llm_client) -> str:
70
  system_prompt = """You are Sentinel, an intelligent AI agent tasked with determining whether a user query requires a web search or can be answered using your existing knowledge base. Your task is to analyze the query and decide on the appropriate action.
71
 
72
  Instructions for Sentinel:
73
- 1. If the query is a general conversation starter, greeting, or can be answered without real-time information, classify it as "knowledge_base".
74
  2. If the query requires up-to-date information, news, or specific data that might change over time, classify it as "web_search".
75
  3. Consider the chat history when making your decision.
76
  4. Respond with ONLY "knowledge_base" or "web_search".
 
70
  system_prompt = """You are Sentinel, an intelligent AI agent tasked with determining whether a user query requires a web search or can be answered using your existing knowledge base. Your task is to analyze the query and decide on the appropriate action.
71
 
72
  Instructions for Sentinel:
73
+ 1. If the query is a general conversation starter, greeting, providing Instructions given below, or can be answered without real-time information, classify it as "knowledge_base".
74
  2. If the query requires up-to-date information, news, or specific data that might change over time, classify it as "web_search".
75
  3. Consider the chat history when making your decision.
76
  4. Respond with ONLY "knowledge_base" or "web_search".