Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
·
81fca18
1
Parent(s):
2a13ed4
feat: add backend
Browse files
main.py
CHANGED
@@ -59,14 +59,11 @@ RETRIEVER = DB.as_retriever()
|
|
59 |
|
60 |
LLM = load_model(device_type=DEVICE_TYPE, model_id=MODEL_ID, model_basename=MODEL_BASENAME, stream=True, callbacks=[MyCustomSyncHandler()])
|
61 |
|
62 |
-
template = """you are a helpful, respectful and honest assistant.
|
63 |
-
|
64 |
-
You should only respond only topics that contains in documents use to training.
|
65 |
-
Use the following pieces of context to answer the question at the end.
|
66 |
Always answer in the most helpful and safe way possible.
|
67 |
If you don't know the answer to a question, just say that you don't know, don't try to make up an answer, don't share false information.
|
68 |
-
Use 15 sentences maximum. Keep the answer as concise as possible.
|
69 |
-
Always say "thanks for asking!" at the end of the answer.
|
70 |
Context: {context}
|
71 |
Question: {question}
|
72 |
"""
|
|
|
59 |
|
60 |
LLM = load_model(device_type=DEVICE_TYPE, model_id=MODEL_ID, model_basename=MODEL_BASENAME, stream=True, callbacks=[MyCustomSyncHandler()])
|
61 |
|
62 |
+
template = """you are a helpful, respectful and honest assistant. You should only use the source documents provided to answer the questions.
|
63 |
+
You should only respond only topics that contains in documents use to training. Use the following pieces of context to answer the question at the end.
|
|
|
|
|
64 |
Always answer in the most helpful and safe way possible.
|
65 |
If you don't know the answer to a question, just say that you don't know, don't try to make up an answer, don't share false information.
|
66 |
+
Use 15 sentences maximum. Keep the answer as concise as possible. Always say "thanks for asking!" at the end of the answer.
|
|
|
67 |
Context: {context}
|
68 |
Question: {question}
|
69 |
"""
|