richdocuments/docs/ai.md
Julien Veyssier fe52cf4460
chore: add docs/ai.md about document generation
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-04-22 12:39:55 +02:00

31 lines
1.7 KiB
Markdown

<!--
- SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# AI document generation
This app implements task processing providers to generate office documents from a user prompt. You can disable these providers
in the "Artificial intelligence" admin settings section.
This feature is accessible in the Assistant app.
These providers require to setup multiple background job workers because each task schedules an extra one
to actually generate the document content with a TextToText provider.
You need a provider for the TextToText task type for this document generation feature to work.
You can find the apps that implement such provider in
[the overview of AI features](https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#overview-of-ai-features).
Look for the "Text processing using LLMs" feature in the app table.
See how to set up background job workers in the
[related page of the Nextcloud admin documentation](https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#ai-overview-improve-ai-task-pickup-speed).
## Office text document generation
You can generate docx/odt/pdf documents from a prompt with the "Generate Office text document" task type in the Assistant.
This feature actually first generates markdown from the prompt, then converts it to HTML and then asks Collabora
to convert it into a document.
## Spreadsheet document generation
You can generate xlsx/ods documents from a prompt with the "Generate Office spreadsheet document" task type in the Assistant.
This feature first generates CSV content from the prompt and asks Collabora to convert it into a document.