-
Notifications
You must be signed in to change notification settings - Fork 140
Slide deck generation task provider #4390
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
Conversation
|
|
||
| class SlideDeckService { | ||
| public const PROMPT = <<<EOF | ||
| Draft a presentation slide deck with headlines and a maximum of 5 bullet points per headline. Use the following JSON structure for your whole output and output only the JSON array, no introductory text: |
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.
I just remembered, Daphne raised to me that this likely should support different languages as well (especially German). Is that feasible? Just using different prompts then?
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.
We should probably add an instruction sentence to make sure the model outputs in the same language as the "presentation text" coming from the user.
The "system" prompt can stay in english. We do it for summary, headlines, topics etc... and it works pretty well with most tested models.
4b2bd29 to
edb9f2e
Compare
edb9f2e to
7affa3a
Compare
264a9cd to
f2b22ec
Compare
juliusknorr
left a comment
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.
Small nitpick, looks good otherwise 👍
e44031e to
9a32edf
Compare
…extcloud/slide_deck_generator Signed-off-by: Julien Veyssier <[email protected]>
9a32edf to
bbc13d6
Compare
refs #4095
Here is what was originally in https://github.com/nextcloud/slide_deck_generator