Shreyas094 commited on
Commit
231e148
1 Parent(s): 8339b76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -509,9 +509,9 @@ def get_response_with_search(query, model, num_calls=3, temperature=0.2):
509
  for url in search_results:
510
  context += crawler.get_website_content_from_url(url) + "\n"
511
 
512
- prompt = f"""Using the following context from web search results:
513
- {context}
514
- Write a detailed and complete research article that fulfills the following user request: '{query}'
515
  After writing the document, please provide a list of sources used in your response."""
516
 
517
  if model == "@cf/meta/llama-3.1-8b-instruct":
 
509
  for url in search_results:
510
  context += crawler.get_website_content_from_url(url) + "\n"
511
 
512
+ prompt = f"""You are an expert AI named Sentinel and have been given a task to create a detailed and complete research article using the following context from web search results:
513
+ {context} that fulfills the following user request: '{query}'
514
+ Cover all the key points discussed in the {context} provided to you. Also stick with the context provided to you do not report any misleading or out of context information.
515
  After writing the document, please provide a list of sources used in your response."""
516
 
517
  if model == "@cf/meta/llama-3.1-8b-instruct":