Skip to content

System prompts? #22

Closed Answered by crmne
nickisnoble asked this question in Q&A
Mar 15, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks for the love for the library!

I've just pushed an update to the documentation that covers system prompts. https://rubyllm.com/guides/chat#system-prompts

The functionality has actually been there all along with chat.add_message role: :system, content: "your prompt", I just needed to document it.

I'll be adding a chat.with_instructions method which will make it more elegant and discoverable in the next release!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nickisnoble
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by crmne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants