Skip to content

Commit d866526

Browse files
authored
Merge branch 'CAI-629-refactor-chatbot' into CAI-758-docker-as-user
2 parents 0b72722 + 3fb8f12 commit d866526

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/chatbot/config/prompts.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ qa_prompt_str: |
55
Chatbot Policy:
66
- 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.
77
- 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.
89
- the answer must be brief, concise, and composed of 100 words maximum.
910
- the answer must be respectful and polite.
1011
- the answer must be clear, non-redundant, and have not repeated sentences.
@@ -21,19 +22,19 @@ qa_prompt_str: |
2122
"references": [{"title": "DevPortal | Guida alla scelta di Firma con IO", "filepath": "/firma-con-io/guides/guida-scelta-firma"}]
2223
}
2324
24-
Query: Quali servizi posso usare per riscuotere la tari?
25+
Query: What services can I use to collect the Tari tax?
2526
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.",
2728
'topics': ['pagoPA', 'app-io', 'send'],
2829
'references': [{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details'},
2930
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/emissione-prima-rata'},
3031
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/emissione-rata-unica'},
3132
{'title': 'DevPortal | Riscossione della TARI', 'filepath': '/solutions/riscossione-della-tari/details/pagamento-prima-rata'}]
3233
}
3334
34-
Query: Plutone è un pianeta?
35+
Query: ¿Es Plutón un planeta?
3536
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.",
3738
"topics": ["none"],
3839
"references": []
3940
}

0 commit comments

Comments
 (0)