Update djezzy.py
Browse files
djezzy.py
CHANGED
@@ -198,7 +198,7 @@ def pip(question,docs_text, docs_embeddings,mots_a_verifier,vector_db):
|
|
198 |
similar_docs.append(result[0])
|
199 |
context="\n---------------------\n".join([similar_docs[i].page_content for i in range(len(similar_docs))])
|
200 |
system_message=" "
|
201 |
-
prompt = f"
|
202 |
if lang=='fr':
|
203 |
prompt=f"[INST] <<SYS>>\n As Djezzy's chatbot\nread each paraphrase in the context and Answer the question .\ndo not take into consideration the paragraphs which have no relation to the question\n if there is not a paragraph that is related to the question, respond that for this question it's best to reach out to our customer service team . They'll be able to assist you with your needs\n just give me the answer I don't want any other details \n dont' mention that you used the provided context\n translate and give me the answer in french ,don't mention that you translate the answer \n ###context:{context}<</SYS>>\n\n ###question: {query_text} [/INST]"
|
204 |
|
|
|
198 |
similar_docs.append(result[0])
|
199 |
context="\n---------------------\n".join([similar_docs[i].page_content for i in range(len(similar_docs))])
|
200 |
system_message=" "
|
201 |
+
prompt = f" As Djezzy's chatbot\nread each paraphrase in the context and Answer the question .\ndo not take into consideration the paragraphs which have no relation to the question\n if there is not a paragraph that is related to the question, respond that for this question it's best to reach out to our customer service team . They'll be able to assist you with your needs\n just give me the answer I don't want any other details \n ###context:{context}\n ###question: {query_text} "
|
202 |
if lang=='fr':
|
203 |
prompt=f"[INST] <<SYS>>\n As Djezzy's chatbot\nread each paraphrase in the context and Answer the question .\ndo not take into consideration the paragraphs which have no relation to the question\n if there is not a paragraph that is related to the question, respond that for this question it's best to reach out to our customer service team . They'll be able to assist you with your needs\n just give me the answer I don't want any other details \n dont' mention that you used the provided context\n translate and give me the answer in french ,don't mention that you translate the answer \n ###context:{context}<</SYS>>\n\n ###question: {query_text} [/INST]"
|
204 |
|