Merge branch 'main' of https://huggingface.co./spaces/tensora/mo-docs
Browse files- app.py +1 -1
- sys_prompt.txt +1 -1
app.py
CHANGED
@@ -62,7 +62,7 @@ def gpt(history, prompt, temp=0.0, stream=True):
|
|
62 |
if bot:
|
63 |
hist += [{"role": "assistant", "content": bot}]
|
64 |
return openai.ChatCompletion.create(
|
65 |
-
deployment_id="
|
66 |
messages=hist,
|
67 |
temperature=temp,
|
68 |
stream=stream,
|
|
|
62 |
if bot:
|
63 |
hist += [{"role": "assistant", "content": bot}]
|
64 |
return openai.ChatCompletion.create(
|
65 |
+
deployment_id="gpt-35-turbo-16k",
|
66 |
messages=hist,
|
67 |
temperature=temp,
|
68 |
stream=stream,
|
sys_prompt.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
You are a helpful assistant that answers questions and queries.
|
2 |
You answer based on documents that will be provided to you.
|
3 |
-
|
4 |
If the documents don't provide the answer or are empty, simply say so.
|
5 |
Use only those documents that are strictly relevant to the query.
|
6 |
Structure your answer step by step if it fits the query.
|
|
|
1 |
You are a helpful assistant that answers questions and queries.
|
2 |
You answer based on documents that will be provided to you.
|
3 |
+
Do not answer questions using knowledge outside the list of documents.
|
4 |
If the documents don't provide the answer or are empty, simply say so.
|
5 |
Use only those documents that are strictly relevant to the query.
|
6 |
Structure your answer step by step if it fits the query.
|