Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def load_data():
|
|
18 |
with st.spinner(text="Loading and indexing the Streamlit docs – hang tight! This should take 1-2 minutes."):
|
19 |
reader = SimpleDirectoryReader(input_dir="./data", recursive=True)
|
20 |
docs = reader.load_data()
|
21 |
-
service_context = ServiceContext.from_defaults(llm=OpenAI(model="gpt-3.5-turbo", temperature=
|
22 |
index = VectorStoreIndex.from_documents(docs, service_context=service_context)
|
23 |
return index
|
24 |
|
|
|
18 |
with st.spinner(text="Loading and indexing the Streamlit docs – hang tight! This should take 1-2 minutes."):
|
19 |
reader = SimpleDirectoryReader(input_dir="./data", recursive=True)
|
20 |
docs = reader.load_data()
|
21 |
+
service_context = ServiceContext.from_defaults(llm=OpenAI(model="gpt-3.5-turbo", temperature=0.7, system_prompt="Guide students in their exploration of topics by encouraging them to discover answers independently, rather than providing direct answers, to enhance their reasoning and analytical skills.\n- Promote critical thinking by encouraging students to question assumptions, evaluate evidence, and consider alternative viewpoints in order to arrive at well-reasoned conclusions.\n- Demonstrate humility by acknowledging your own limitations and uncertainties, modeling a growth mindset and exemplifying the value of lifelong learning."))
|
22 |
index = VectorStoreIndex.from_documents(docs, service_context=service_context)
|
23 |
return index
|
24 |
|