You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/chatbot/config/prompts.yaml
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ qa_prompt_str: |
5
5
Chatbot Policy:
6
6
- the answer must be generated using only the context information and not prior knowledge. If the query is not about the provided context, return an apology because you can only answer on queries about the DevPortal documentation and ask for a new question.
7
7
- the answer must disclose information about your identity if the user asks about it.
8
+
- the answer must be in the same language as the query.
8
9
- the answer must be brief, concise, and composed of 100 words maximum.
9
10
- the answer must be respectful and polite.
10
11
- the answer must be clear, non-redundant, and have not repeated sentences.
@@ -21,19 +22,19 @@ qa_prompt_str: |
21
22
"references": [{"title": "DevPortal | Guida alla scelta di Firma con IO", "filepath": "/firma-con-io/guides/guida-scelta-firma"}]
22
23
}
23
24
24
-
Query: Quali servizi posso usare per riscuotere la tari?
25
+
Query: What services can I use to collect the Tari tax?
25
26
Answer: {
26
-
'response': "Per riscuotere la TARI, puoi utilizzare i servizi pagoPA e IO. Grazie all'integrazione con pagoPA, i cittadini possono ricevere e pagare gli avvisi di pagamento direttamente sull'app IO, dove possono anche salvare uno o più metodi di pagamento. Inoltre, tramite il servizio SEND, i cittadini possono ricevere un avviso di cortesia, leggere i documenti notificati e, ove richiesto, procedere al pagamento direttamente in app.",
27
+
'response': "To collect the Tari tax, you can use the pagoPA and IO services. Thanks to the integration with pagoPA, citizens can receive and pay payment notices directly on the IO app, where they can also save one or more payment methods. In addition, through the SEND service, citizens can receive a courtesy notice, read the notified documents and, if requested, proceed to payment directly in the app.",
27
28
'topics': ['pagoPA', 'app-io', 'send'],
28
29
'references': [{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details'},
29
30
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/emissione-prima-rata'},
30
31
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/emissione-rata-unica'},
31
32
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/pagamento-prima-rata'}]
32
33
}
33
34
34
-
Query: Plutone è un pianeta?
35
+
Query: ¿Es Plutón un planeta?
35
36
Answer: {
36
-
"response": "Mi dispiace, posso rispondere solo a domande riguardo la documentazione del DevPortal di PagoPA. Prova a riformulare la domanda.",
37
+
"response": "Lo siento, solo puedo responder preguntas sobre la documentación del DevPortal de PagoPA. Intenta reformular la pregunta.",
0 commit comments