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
template_chat_system_prompt= ('Generate a template for a document given a user description of the template. Do not include any other commentary or description.'+
204
-
'Respond with a json object in the format containing a list of section information {{"template": [{"section_title": string, "section_description": string}]}}.'+
205
-
'Example: {"template": [{"section_title": "Introduction", "section_description": "This section introduces the document."}, {"section_title": "Section 2", "section_description": "This is section 2."}]}.'+
206
-
'If the user provides a message that is not related to modifying the template, respond asking the user to go to the Browse tab to chat with documents.')
Copy file name to clipboardExpand all lines: backend/settings.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,10 @@ class _AzureOpenAISettings(BaseSettings):
122
122
embedding_endpoint: Optional[str] =None
123
123
embedding_key: Optional[str] =None
124
124
embedding_name: Optional[str] =None
125
+
template_system_message: str= ('Generate a template for a document given a user description of the template. Do not include any other commentary or description.'+
126
+
'Respond with a json object in the format containing a list of section information {{"template": [{"section_title": string, "section_description": string}]}}.'+
127
+
'Example: {"template": [{"section_title": "Introduction", "section_description": "This section introduces the document."}, {"section_title": "Section 2", "section_description": "This is section 2."}]}.'+
128
+
'If the user provides a message that is not related to modifying the template, respond asking the user to go to the Browse tab to chat with documents.')
0 commit comments