KingNish commited on
Commit
6945c9f
1 Parent(s): 70a0c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -222,7 +222,7 @@ async def adv_web_search(
222
  region: str = "wt-wt",
223
  backend: str = "api",
224
  max_chars: int = 6000,
225
- system_prompt: str = Query(None, description="Optional custom system prompt")
226
  ):
227
  """
228
  Combines web search, web extraction, and LLM chat for advanced search.
@@ -253,7 +253,7 @@ async def adv_web_search(
253
  pass
254
 
255
  # 3. Construct the prompt for the LLM
256
- llm_prompt = f"Query by user: {q} , Answerthe query asked by user using these search results, Which contains real time data, Try to give best response: {extracted_text}"
257
 
258
  # 4. Get the LLM's response using LLM class (similar to /api/llm)
259
  messages = [{"role": "user", "content": llm_prompt}]
 
222
  region: str = "wt-wt",
223
  backend: str = "api",
224
  max_chars: int = 6000,
225
+ system_prompt: str = "You are Most Advanced and Powerful Ai chatbot, User ask you questions and you have to answer that, You are also provided with Google Search Results, To increase your accuracy and providing real time data. Your task is to answer in best way to user."
226
  ):
227
  """
228
  Combines web search, web extraction, and LLM chat for advanced search.
 
253
  pass
254
 
255
  # 3. Construct the prompt for the LLM
256
+ llm_prompt = f"Query by user: {q} , Answer the query asked by user in detail. Now, You are provided with Google Search Results, To increase your accuracy and providing real time data. SEarch Result: {extracted_text}"
257
 
258
  # 4. Get the LLM's response using LLM class (similar to /api/llm)
259
  messages = [{"role": "user", "content": llm_prompt}]