Spaces:
Running
Running
NA
Browse files
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', '
|
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
|
43 |
-
|
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 |
)
|