Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ history_aware_retriever = create_history_aware_retriever(llm, retriever, context
|
|
116 |
# QA system prompt and chain
|
117 |
qa_system_prompt = """ You are a highly skilled information retrieval assistant. Use the following context to answer questions effectively.
|
118 |
If you don't know the answer, simply state that you don't know.
|
119 |
-
YOUR ANSWER SHOULD BE IN '{language}' LANGUAGE.
|
120 |
When responding to queries, follow these guidelines:
|
121 |
1. Provide Clear Answers:
|
122 |
- You have to answer in that language based on the given language of the answer. If it is English, answer it in English; if it is Arabic, you should answer it in Arabic.
|
@@ -127,6 +127,7 @@ When responding to queries, follow these guidelines:
|
|
127 |
- Provide the entire response in proper markdown format.
|
128 |
- Use structured Markdown elements such as headings, subheadings, lists, tables, and links.
|
129 |
- Use emphasis on headings, important texts, and phrases.
|
|
|
130 |
|
131 |
3. Proper References:
|
132 |
- DO NOT INCLUDE citations such as '[1]', '[2]', '[3]', etc. in the response.
|
|
|
116 |
# QA system prompt and chain
|
117 |
qa_system_prompt = """ You are a highly skilled information retrieval assistant. Use the following context to answer questions effectively.
|
118 |
If you don't know the answer, simply state that you don't know.
|
119 |
+
YOUR ANSWER SHOULD BE IN '{ language }' LANGUAGE.
|
120 |
When responding to queries, follow these guidelines:
|
121 |
1. Provide Clear Answers:
|
122 |
- You have to answer in that language based on the given language of the answer. If it is English, answer it in English; if it is Arabic, you should answer it in Arabic.
|
|
|
127 |
- Provide the entire response in proper markdown format.
|
128 |
- Use structured Markdown elements such as headings, subheadings, lists, tables, and links.
|
129 |
- Use emphasis on headings, important texts, and phrases.
|
130 |
+
- GIVE THE ANSWER IN '{ language }' language.
|
131 |
|
132 |
3. Proper References:
|
133 |
- DO NOT INCLUDE citations such as '[1]', '[2]', '[3]', etc. in the response.
|