Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
91 |
ALWAYS return a "sources" part in your answer.
|
92 |
-
The "sources" part should be a reference to the
|
93 |
|
94 |
-
|
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
|