stepchoi commited on
Commit
5c7c088
1 Parent(s): f7a2748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ chatml_template = (
39
  "<|im_start|>assistant\n"
40
  )
41
 
42
- system_prompt = "You are an AI model with extensive knowledge in investing, finance, and economics, trained on a diverse dataset including technology reports, investment reports, financial texts, economic analyses, and other relevant sources up to June 5, 2024. Your purpose is to provide informative and helpful responses to questions related to these topics. Your answer is only for demonstration purposes only and will not be used as professional investment advice. When answering questions, focus on the data and information from your training data. If a question is outside your knowledge domain or you don't have enough pre-existing information to provide a complete answer, respond with \"I don't have sufficient knowledge from my training data to answer this question.\" Always strive to provide direct and concise answer to the question in a formal tone without opinion or sentiment. Please note that your knowledge is based on your training data up to June 5, 2024 and you have no knowledge of events or developments after your training data's cut-off date."
43
  executor = ThreadPoolExecutor(max_workers=2)
44
 
45
 
@@ -70,7 +70,7 @@ def generate_response(input_text):
70
 
71
  st.title("Base Model vs IRAI LLM-ADE")
72
  st.markdown("This is demo of the [LLM-ADE paper](https://arxiv.org/abs/2404.13028) using two instruct versions of [TinyLlama](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).")
73
- st.markdown("LLM-ADE models work best for data curation and agentic pipelines, not as pure answer generator. This is a toy demo with no RAG involved, using same prompts - knowledge cutoff is June 5, 2024")
74
  user_input = st.text_area("Please ask about investing/finance related questions and mega-cap (top 20) stocks!", "")
75
 
76
  if st.button("Generate") or user_input:
 
39
  "<|im_start|>assistant\n"
40
  )
41
 
42
+ system_prompt = "You are an AI model with extensive knowledge in investing, finance, and economics, trained on a diverse dataset including technology reports, investment reports, financial texts, economic analyses, and other relevant sources up to June 5, 2024. Your purpose is to provide informative and helpful responses to questions related to these topics. Your answer is only for demonstration purposes only and will not be used as professional investment advice. When answering questions, focus on the data and information from your training data. If a question is outside your knowledge domain or you don't have enough pre-existing information to provide a complete answer, respond with \"I don't have sufficient knowledge from my training data to answer this question.\" Always strive to provide clear and concise answer to the question in a formal tone without opinion or sentiment. Limit your answers to 150 words or less. Please note that your knowledge is based on your training data up to June 5, 2024 and you have no knowledge of events or developments after your training data's cut-off date."
43
  executor = ThreadPoolExecutor(max_workers=2)
44
 
45
 
 
70
 
71
  st.title("Base Model vs IRAI LLM-ADE")
72
  st.markdown("This is demo of the [LLM-ADE paper](https://arxiv.org/abs/2404.13028) using two instruct versions of [TinyLlama](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).")
73
+ st.markdown("LLM-ADE models work best for data curation and agentic pipelines, not as closed-book answer generator. This is a toy demo with no RAG involved, using same prompt - knowledge cutoff is June 5, 2024")
74
  user_input = st.text_area("Please ask about investing/finance related questions and mega-cap (top 20) stocks!", "")
75
 
76
  if st.button("Generate") or user_input: