ofermend commited on
Commit
a598ae4
1 Parent(s): 6134aca
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ from llama_index.llms.openai import OpenAI
13
  from llama_index.core.tools import QueryEngineTool, ToolMetadata
14
  from llama_index.core.utils import print_text
15
 
16
- learning_styles = ['traditional', 'inquiry based']
17
  languages = {'English': 'en', 'Spanish': 'es', 'French': 'fr', 'German': 'de', 'Arabic': 'ar', 'Chinese': 'zh-cn',
18
  'Hebrew': 'he', 'Hindi': 'hi', 'Italian': 'it', 'Japanese': 'ja', 'Korean': 'ko', 'Portuguese': 'pt'}
19
  initial_prompt = "How can I help you today?"
@@ -39,8 +39,8 @@ def launch_bot():
39
  tools=[vectara_tool], llm=llm,
40
  context = f'''
41
  You are a teacher assistant at Justice Harvard course. You are helping a student with his questions.
42
- The student is student who is {cfg.student_age} years old, you personalize your assistance to the student's age,
43
- and phrase your answer according to the student's {cfg.style} learning style.
44
  ''',
45
  verbose=True
46
  )
 
13
  from llama_index.core.tools import QueryEngineTool, ToolMetadata
14
  from llama_index.core.utils import print_text
15
 
16
+ learning_styles = ['traditional', 'Inquiry-based']
17
  languages = {'English': 'en', 'Spanish': 'es', 'French': 'fr', 'German': 'de', 'Arabic': 'ar', 'Chinese': 'zh-cn',
18
  'Hebrew': 'he', 'Hindi': 'hi', 'Italian': 'it', 'Japanese': 'ja', 'Korean': 'ko', 'Portuguese': 'pt'}
19
  initial_prompt = "How can I help you today?"
 
39
  tools=[vectara_tool], llm=llm,
40
  context = f'''
41
  You are a teacher assistant at Justice Harvard course. You are helping a student with his questions.
42
+ The student is {cfg.student_age} years old, so make sure to adapt your response as appropriate to that age.
43
+ Phrase your answer to fit an {cfg.style} style.
44
  ''',
45
  verbose=True
46
  )