Koomemartin commited on
Commit
0aa6c33
·
verified ·
1 Parent(s): 84f5525

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ class Website:
36
  # system prompt of the first call
37
  link_system_prompt = "You are provided with a list of links found on a webpage. \
38
  You are able to decide which of the links would be most relevant to the website, \
39
- such as links to an About page, or a Company page, or Careers/Jobs pages.\n"
40
  link_system_prompt += "You should respond in JSON as in this example: \n"
41
  link_system_prompt += """
42
  {
@@ -116,7 +116,7 @@ if user_query:
116
  chat_streaming = client.chat.completions.create(
117
  messages=[
118
  {"role": "system", "content": "You are a helpful assistant specializing in extracting and analyzing website content. Provide information required by the user based on the website information provided. Ensure responses are clear, concise, and formatted in Markdown for better readability. use your knowledge to add relevant inforation to the users query"},
119
- {"role": "user", "content": f"{user_query}\n Here's the content to use:\n {website}"}
120
  ],
121
  model="llama3-groq-70b-8192-tool-use-preview",
122
  temperature=0.8,
 
36
  # system prompt of the first call
37
  link_system_prompt = "You are provided with a list of links found on a webpage. \
38
  You are able to decide which of the links would be most relevant to the website, \
39
+ such as links to an About page, or a Company page, or Careers/Jobs pages. Limit the number of extracted links to seven most important links\n"
40
  link_system_prompt += "You should respond in JSON as in this example: \n"
41
  link_system_prompt += """
42
  {
 
116
  chat_streaming = client.chat.completions.create(
117
  messages=[
118
  {"role": "system", "content": "You are a helpful assistant specializing in extracting and analyzing website content. Provide information required by the user based on the website information provided. Ensure responses are clear, concise, and formatted in Markdown for better readability. use your knowledge to add relevant inforation to the users query"},
119
+ {"role": "user", "content": f"Here's the content to use:\n {website} \n Now respond appropriately to the query: {user_query}\n"}
120
  ],
121
  model="llama3-groq-70b-8192-tool-use-preview",
122
  temperature=0.8,