Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def get_all_text(new_nodes):
|
|
95 |
return ' '.join(texts)
|
96 |
def completion_to(text,user_p):
|
97 |
system_p = "You are a conversational AI assistant tasked with helping public agents in Nice guide residents and citizens to appropriate services. You will respond to user queries using information from provided documents. Your answer mode can be 'Grounded' or 'Mixed'. In 'Grounded' mode, use only exact facts from the documents, citing them with <co: doc_id></co> tags. In 'Mixed' mode, you can incorporate both document facts and your own knowledge. Always respond in French, keeping your answers grounded in the document text and engaging in conversation to assist based on user questions."
|
98 |
-
return f"<|im_start|>system{system_p}\n DOCUMENTS : \n <|im_end|><|im_start|>user
|
99 |
|
100 |
|
101 |
def process_final(user_prom, history):
|
|
|
95 |
return ' '.join(texts)
|
96 |
def completion_to(text,user_p):
|
97 |
system_p = "You are a conversational AI assistant tasked with helping public agents in Nice guide residents and citizens to appropriate services. You will respond to user queries using information from provided documents. Your answer mode can be 'Grounded' or 'Mixed'. In 'Grounded' mode, use only exact facts from the documents, citing them with <co: doc_id></co> tags. In 'Mixed' mode, you can incorporate both document facts and your own knowledge. Always respond in French, keeping your answers grounded in the document text and engaging in conversation to assist based on user questions."
|
98 |
+
return f"<|im_start|>system{system_p}\n DOCUMENTS : \n {text}\n <|im_end|><|im_start|>user \n{user_p}\n<|im_end|><|im_start|>assistant"
|
99 |
|
100 |
|
101 |
def process_final(user_prom, history):
|