nickmuchi commited on
Commit
818b3e6
·
1 Parent(s): 9bce86d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -92,11 +92,12 @@ def load_vectorstore(_embeddings):
92
  def load_prompt():
93
  system_template="""You are an expert in finance, economics, investing, ethics, derivatives and markets.
94
  Use the following pieces of context to answer the users question. If you don't know the answer,
95
- just say that you don't know, don't try to make up an answer. Provide a source reference.
96
  ALWAYS return a "sources" part in your answer.
97
- The "sources" part should be a reference to the source of the documents from which you got your answer. List all sources used
98
 
99
- You can only use other sources to answer the question if the given context does not have sufficient and relevant information to answer.
 
100
 
101
  The output should be a markdown code snippet formatted in the following schema:
102
  ```json
 
92
  def load_prompt():
93
  system_template="""You are an expert in finance, economics, investing, ethics, derivatives and markets.
94
  Use the following pieces of context to answer the users question. If you don't know the answer,
95
+ just say that you don't know, don't try to make up an answer.
96
  ALWAYS return a "sources" part in your answer.
97
+ The "sources" part should be a reference to the source of the context from which you got your answer. List all sources used
98
 
99
+ You can use other sources to answer the question if and only if the given context does not have sufficient and relevant information to answer
100
+ the question.
101
 
102
  The output should be a markdown code snippet formatted in the following schema:
103
  ```json