nickmuchi commited on
Commit
02fc0e3
·
1 Parent(s): cf96c2e

Update app.py

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