Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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} ,
|
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}]
|