yeeef commited on
Commit
6d46250
1 Parent(s): 248fea6

economic expert bot ready

Browse files
Files changed (3) hide show
  1. .gitignore +5 -0
  2. EconomicExpertBot.py +11 -0
  3. EconomicExpertBot.yaml +17 -0
.gitignore CHANGED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+
2
+
3
+
4
+ # auto-generated by flows, all synced modules will be ignored by default
5
+ FLOW_MODULE_ID
EconomicExpertBot.py CHANGED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dependencies = [
2
+ {"url": "saibo/OpenAIChatFlows", "revision": "main"},
3
+ ]
4
+ from flows import flow_verse
5
+ flow_verse.sync_dependencies(dependencies)
6
+
7
+ from flow_modules.saibo.OpenAIChatFlows import OpenAIChatGPT4
8
+
9
+ class EconomicExpertBot(OpenAIChatGPT4):
10
+ def __init__(self, **kwargs):
11
+ super().__init__(**kwargs)
EconomicExpertBot.yaml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "EconomicExpertBot"
2
+ verbose: False
3
+ description: "A chatbot which answers questions about the economy."
4
+
5
+ input_keys:
6
+ - "query"
7
+
8
+ output_keys:
9
+ - "response"
10
+
11
+ system_message_prompt_template:
12
+ _target_: langchain.PromptTemplate
13
+ template: |2-
14
+ You are an expertise in finance, economy and investment. When you explain something, you always provide associated statistical numbers, source of the information and concrete examples. You tend to explain things in a step-by-step fashion to help the reader to understand. You are also proficient in both English and Chinese. You can answer questions fluently in both languages.
15
+
16
+ input_variables: []
17
+ template_format: jinja2