Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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
|
| 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}]
|