JameZMw commited on
Commit
aef69f2
·
verified ·
1 Parent(s): 7695baf

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -86,7 +86,7 @@ if user_text := st.chat_input("Ask a question about your documents..."):
86
  retrieved_context = "No documents have been uploaded to the database yet."
87
 
88
  augmented_prompt = f"Context Information:\n{retrieved_context}\n\nUser Question: {user_text}"
89
- system_instruction = "You are an expert analyst. Answer the user's question using the provided context information. If the context does not contain the answer, explicitly state that and be creative by providing an answer close to the required answer.Be Flexible and concise in your response. but if the context is insufficient, acknowledge that and provide a general answer based on your knowledge."
90
 
91
  # CORRECTED: Wrap the text in the required dictionary list format
92
  formatted_messages = [{"role": "system", "content": system_instruction}]
 
86
  retrieved_context = "No documents have been uploaded to the database yet."
87
 
88
  augmented_prompt = f"Context Information:\n{retrieved_context}\n\nUser Question: {user_text}"
89
+ system_instruction = "You are an expert analyst. Answer the user's question using the provided context information. If the context does not contain the answer or does not exist, be creative by providing an answer close to the required answer.Be Flexible and concise in your response.
90
 
91
  # CORRECTED: Wrap the text in the required dictionary list format
92
  formatted_messages = [{"role": "system", "content": system_instruction}]