-
Notifications
You must be signed in to change notification settings - Fork 0
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
Introduced Nested Template Support in Prompts. #7
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.
Awesome. One comment / question related to Spectre.root
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.
👍
@matthewblack take a look at new prompts feature Spectre::Prompt.render(template: 'nested/folder/user', locals: { query: 'What is AI?' }) |
root
attribute to the Spectre configuration.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.
Awesome!
For the example, let's update it to be this:
app/
spectre/
prompts/
rag/
system.yml.erb
user.yml.erb
classificiation/
intent/
system.yml.erb
user.yml.erb
entity/
system.yml.erb
user.yml.erb
Changelog for Version 1.1.1
Release Date: [11th Oct 2024]
New Features:
Spectre::Prompt.render
method.