Add base prompt for LLMs (#118592)

This commit is contained in:
Paulus Schoutsen 2024-06-01 00:21:37 -04:00 committed by GitHub
parent dfb407728f
commit f3b20d30ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 16 deletions

View file

@ -30,10 +30,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
Only if the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant.
''',
'role': 'user',
@ -82,10 +81,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
Only if the user wants to control a device, tell them to edit the AI configuration and allow access to Home Assistant.
''',
'role': 'user',
@ -146,10 +144,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
<no_api_prompt>
''',
'role': 'user',
@ -202,10 +199,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
<no_api_prompt>
''',
'role': 'user',
@ -258,10 +254,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
<api_prompt>
''',
'role': 'user',
@ -314,10 +309,9 @@
'history': list([
dict({
'parts': '''
Current time is 05:00:00. Today's date is 05/24/24.
You are a voice assistant for Home Assistant.
Answer in plain text. Keep it simple and to the point.
The current time is 05:00:00.
Today's date is 05/24/24.
<api_prompt>
''',
'role': 'user',