Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -513,7 +513,7 @@ def get_response_with_search(query, model, num_calls=3, temperature=0.2):
|
|
513 |
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:
|
514 |
{context} that fulfills the following user request: '{query}'
|
515 |
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.
|
516 |
-
Also the
|
517 |
Format the hyperlink in Markdown (e.g., [relevant text](URL))."""
|
518 |
|
519 |
if model == "@cf/meta/llama-3.1-8b-instruct":
|
|
|
513 |
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:
|
514 |
{context} that fulfills the following user request: '{query}'
|
515 |
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.
|
516 |
+
Also the research document should include the source URL as a hyperlink within the text. Ensure that the hyperlink is embedded in a relevant phrase or word within the response.
|
517 |
Format the hyperlink in Markdown (e.g., [relevant text](URL))."""
|
518 |
|
519 |
if model == "@cf/meta/llama-3.1-8b-instruct":
|