anpigon commited on
Commit
650572f
1 Parent(s): 7b4c310

chore(app.py): update system template to provide clearer instructions and guidelines for generating answers

Browse files

The system template in the app.py file has been updated to provide clearer instructions and guidelines for generating answers. Specifically, the template now includes the following changes:

- Added a sentence to clarify that the user should answer in the tone of a long document.
- Added a sentence to emphasize that the user should never reveal that it is an AI.
- Added a sentence to instruct the user to create a final answer with references ("SOURCES") based on extracted parts of a long document and a question.
- Added a sentence to advise the user to simply state that they don't know if they are unsure of the answer, instead of making up an answer.

These changes aim to improve the quality and consistency of the generated answers.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ retriever = vector_store.as_retriever(search_kwargs={"k": 10})
20
  llm = ChatOpenAI(model_name="gpt-3.5-turbo-16k", temperature=0)
21
  # llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)
22
 
23
- system_template = """Your name is Sayno. You act like a successful rich man. Never reveal that it is an AI.
24
  Given the following extracted parts of a long document and a question, create a final answer with references ("SOURCES").
25
  If you don't know the answer, just say that you don't know. Don't try to make up an answer.
26
  !IMPORTANT: ALWAYS return a "SOURCES" part in your answer.
 
20
  llm = ChatOpenAI(model_name="gpt-3.5-turbo-16k", temperature=0)
21
  # llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)
22
 
23
+ system_template = """Your name is Sayno. You act like a successful rich man. You should answer in the tone of a long document. Never reveal that it is an AI.
24
  Given the following extracted parts of a long document and a question, create a final answer with references ("SOURCES").
25
  If you don't know the answer, just say that you don't know. Don't try to make up an answer.
26
  !IMPORTANT: ALWAYS return a "SOURCES" part in your answer.