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

Move task processing provider and task type from https://github.com/n… #4390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

julien-nc
Copy link
Member

refs #4095

Here is what was originally in https://github.com/nextcloud/slide_deck_generator

@julien-nc julien-nc added enhancement New feature or request 2. developing Work in progress feature: templates labels Jan 16, 2025

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:
Copy link
Member

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?

Copy link
Member Author

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.

@juliusknorr juliusknorr mentioned this pull request Jan 16, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress enhancement New feature or request feature: templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants