Skip to content
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

Merged
merged 2 commits into from
Dec 16, 2023
Merged

Conversation

cognitivetech
Copy link
Contributor

@cognitivetech cognitivetech commented Dec 14, 2023

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 💪

@cognitivetech cognitivetech changed the title correct multiline string correct yaml multiline string Dec 14, 2023
Copy link
Contributor

@lopagela lopagela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already raised #1353 (comment)


Could you please review the feedback and adjust? Thank you 🙏

settings.yaml Outdated
Comment on lines 25 to 30
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: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use > over |

@cognitivetech
Copy link
Contributor Author

cognitivetech commented Dec 15, 2023

Already raised #1353 (comment)

Could you please review the feedback and adjust? Thank you 🙏

to be clear, #1353 (comment) seems to imply that its desirable to preserve formatting (newlines), which is in line with the |. Rather than > which replaces newline with space.

I will change to > if that's what we want, just wish to be clear.

@lopagela
Copy link
Contributor

seems to imply that its desirable to preserve formatting (newlines),

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, > should be the way to go IMHO

@cognitivetech
Copy link
Contributor Author

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)

@imartinez imartinez merged commit 2564f8d into zylon-ai:main Dec 16, 2023
6 checks passed
simonbermudez pushed a commit to simonbermudez/saimon that referenced this pull request Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants