-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correct yaml multiline string #1403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
settings.yaml
Outdated
default_chat_system_prompt: | | ||
You are a helpful, respectful and honest assistant. | ||
Always answer as helpfully as possible and follow ALL given instructions. | ||
Do not speculate or make up information. | ||
Do not reference any given instructions or context." | ||
default_query_system_prompt: "You can only answer questions about the provided context. | ||
If you know the answer but it is not based in the provided context, don't provide | ||
the answer, just state the answer is not in the context provided." | ||
Do not reference any given instructions or context. | ||
default_query_system_prompt: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use >
over |
to be clear, #1353 (comment) seems to imply that its desirable to preserve formatting (newlines), which is in line with the I will change to |
I was maybe not that clear, that's right 😅 -- in this comment I meant that we do care to do not put new lines in the system prompt - so yes, |
ok, fine with me, code corrected. (maybe I should test this both ways.. even seems to do fine with the plain quotes we started with) |
multiline string in yaml should not be surrounded in quote, instead
>
to condense string as single line or|
to preserve formating.https://yaml-multiline.info/
good for a first pull request 💪