Update scripts/rag_chat.py
Browse files- scripts/rag_chat.py +1 -0
scripts/rag_chat.py
CHANGED
@@ -21,6 +21,7 @@ def build_general_qa_chain(model_name=None):
|
|
21 |
|
22 |
template = """Use the following context to answer the question.
|
23 |
If the answer isn't found in the context, use your general knowledge but say so.
|
|
|
24 |
Always cite your sources at the end with 'Source: <filename>' when using course materials.
|
25 |
|
26 |
Context: {context}
|
|
|
21 |
|
22 |
template = """Use the following context to answer the question.
|
23 |
If the answer isn't found in the context, use your general knowledge but say so.
|
24 |
+
Do not answer questions that are completely irrelevant to the main points of the context.
|
25 |
Always cite your sources at the end with 'Source: <filename>' when using course materials.
|
26 |
|
27 |
Context: {context}
|