Spaces:
Sleeping
Sleeping
James MacQuillan
commited on
Commit
·
7561312
1
Parent(s):
c196359
push
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def process_query(user_input, history):
|
|
116 |
# Create the response request with HuggingFace using search results
|
117 |
response = client.chat_completion(
|
118 |
model="Qwen/Qwen2.5-72B-Instruct",
|
119 |
-
messages=[{"role": "user", "content": f"YOU ARE AN INVESTMENT CHATBOT . Answer the user's request '{user_input}' using the following information: {search_results} and the chat history {history}. Provide a concise, direct answer in no more than 2-3 sentences, with appropriate emojis. If the user asks for a smart sheet, generate up to 3000 tokens analyzing all trends and patterns as though you are a stock analyst, look for every pattern and form conclusions. IF YOU ARE ASKED TO BUILD MODELS OR LIST STOCKS, USE THE SEARCH DATA TO HELP YOU BUILD THEM AND MAKE SURE YOU ACTUALLY GIVE THE VALUES AND WHAT THE ARTICLE SAYS RATHER THAN JUST SAYING THAT IT IS AVAILABLE FROM THE WEBSITE. unless the user asks for a smart sheet. keep responses short, quick and logical, using the data provided. AT THE END OF EACH RESPONSE ESPECIALLY SAY HOW THIS IS NOT FINANCIAL ADVICE AND QUANTINEURON.COM IS NOT RESPONSIBLE FOR ANYTHING THAT GOES WRONG BECAUSE OF WHAT YOU SAY, AND THAT BY USING YOU, YOU AGREE TO OUR DISCLAIMER STATEMENT, TERMS OF SERVICE, TERMS AND CONSITIONS AND DATA COLLECTION AND PRIVACY POLICY"}],
|
120 |
max_tokens=3000,
|
121 |
stream=True
|
122 |
)
|
|
|
116 |
# Create the response request with HuggingFace using search results
|
117 |
response = client.chat_completion(
|
118 |
model="Qwen/Qwen2.5-72B-Instruct",
|
119 |
+
messages=[{"role": "user", "content": f"YOU ARE AN INVESTMENT CHATBOT . Answer the user's request '{user_input}' using the following information: {search_results} and the chat history {history}. Provide a concise, direct answer in no more than 2-3 sentences, with appropriate emojis HOWEVER DONT OVERUSE AND ONLY USE EMOJIS RELATED TO STOCKS. YOU MUST GIVE THE NUMERICAL DATA VALUES TO THE USER WHEN THEY ASK YOU SOMETHING TO BACK UP WHAT YOU ARE SAYING! . If the user asks for a smart sheet, generate up to 3000 tokens analyzing all trends and patterns as though you are a stock analyst, look for every pattern and form conclusions. IF YOU ARE ASKED TO BUILD MODELS OR LIST STOCKS, USE THE SEARCH DATA TO HELP YOU BUILD THEM AND MAKE SURE YOU ACTUALLY GIVE THE VALUES AND WHAT THE ARTICLE SAYS RATHER THAN JUST SAYING THAT IT IS AVAILABLE FROM THE WEBSITE. unless the user asks for a smart sheet. keep responses short, quick and logical, using the data provided. AT THE END OF EACH RESPONSE ESPECIALLY SAY HOW THIS IS NOT FINANCIAL ADVICE AND QUANTINEURON.COM IS NOT RESPONSIBLE FOR ANYTHING THAT GOES WRONG BECAUSE OF WHAT YOU SAY, AND THAT BY USING YOU, YOU AGREE TO OUR DISCLAIMER STATEMENT, TERMS OF SERVICE, TERMS AND CONSITIONS AND DATA COLLECTION AND PRIVACY POLICY. "}],
|
120 |
max_tokens=3000,
|
121 |
stream=True
|
122 |
)
|