mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 09:39:57 +08:00
Feature/docs generator (#11858)
### Type of change - [x] New Feature (non-breaking change which adds functionality) ### What problem does this PR solve? This PR introduces a new Docs Generator agent component for producing downloadable PDF, DOCX, or TXT files from Markdown content generated within a RAGFlow workflow. ### **Key Features** **Backend** - New component: DocsGenerator (agent/component/docs_generator.py) - - Markdown → PDF/DOCX/TXT conversion - - Supports tables, lists, code blocks, headings, and rich formatting - - Configurable document style (fonts, margins, colors, page size, orientation) - - Optional header logo and footer with page numbers/timestamps - **Frontend** - New configuration UI for the Docs Generator - - Download button integrated into the chat interface - - Output wired to the Message component - - Full i18n support **Documentation** Added component guide: docs/guides/agent/agent_component_reference/docs_generator.md **Usage** Add the Docs Generator to a workflow, connect Markdown output from an upstream component, configure metadata/style, and feed its output into the Message component. Users will see a document download button directly in the chat. **Contributor Note** We have been following RAGFlow since more than a year and half now and have worked extensively on personalizing the framework and integrating it into several of our internal systems. Over the past year and a half, we have built multiple platforms that rely on RAGFlow as a core component, which has given us a strong appreciation for how flexible and powerful the project is. We also previously contributed the full Italian translation, and we were glad to see it accepted. This new Docs Generator component was created for our own production needs, and we believe that it may be useful for many others in the community as well. We want to sincerely thank the entire RAGFlow team for the remarkable work you have done and continue to do. If there are opportunities to contribute further, we would be glad to help whenever we have time available. It would be a pleasure to support the project in any way we can. If appropriate, we would be glad to be listed among the project’s contributors, but in any case we look forward to continuing to support and contribute to the project. PentaFrame Development Team --------- Co-authored-by: PentaFrame <info@pentaframe.it> Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
@ -788,15 +788,31 @@ export default {
|
||||
'Un composant qui recherche sur baidu.com, utilisant TopN pour spécifier le nombre de résultats. Il complète les bases de connaissances existantes.',
|
||||
duckDuckGo: 'DuckDuckGo',
|
||||
duckDuckGoDescription:
|
||||
'Un composant qui recherche sur duckduckgo.com, vous permettant de spécifier le nombre de résultats avec TopN. Il complète les bases de connaissances existantes.',
|
||||
'Un composant qui recherche sur duckduckgo.com, vous permettant de spécifier le nombre de résultats de recherche avec TopN. Il complète les bases de connaissances existantes.',
|
||||
searXNG: 'SearXNG',
|
||||
searXNGDescription:
|
||||
"Un composant qui effectue des recherches via la URL de l'instance de SearXNG que vous fournissez. Spécifiez TopN et l'URL de l'instance.",
|
||||
channel: 'Canal',
|
||||
channelTip:
|
||||
"Effectuer une recherche de texte ou d'actualités sur l'entrée du composant",
|
||||
text: 'Texte',
|
||||
news: 'Actualités',
|
||||
pdfGenerator: 'Générateur de Documents',
|
||||
pDFGenerator: 'Générateur de Documents',
|
||||
pdfGeneratorDescription: `Un composant qui génère des documents (PDF, DOCX, TXT) à partir de contenu formaté en markdown avec un style personnalisable, des images et des tableaux. Prend en charge : **gras**, *italique*, # titres, - listes, tableaux avec syntaxe |.`,
|
||||
pDFGeneratorDescription: `Un composant qui génère des documents (PDF, DOCX, TXT) à partir de contenu formaté en markdown avec un style personnalisable, des images et des tableaux. Prend en charge : **gras**, *italique*, # titres, - listes, tableaux avec syntaxe |.`,
|
||||
subtitle: 'Sous-titre',
|
||||
logoImage: 'Image Logo',
|
||||
logoPosition: 'Position Logo',
|
||||
logoWidth: 'Largeur Logo',
|
||||
logoHeight: 'Hauteur Logo',
|
||||
fontFamily: 'Famille Police',
|
||||
fontSize: 'Taille Police',
|
||||
titleFontSize: 'Taille Police Titre',
|
||||
pageSize: 'Taille Page',
|
||||
orientation: 'Orientation',
|
||||
marginTop: 'Marge Supérieure',
|
||||
marginBottom: 'Marge Inférieure',
|
||||
filename: 'Nom Fichier',
|
||||
outputDirectory: 'Répertoire Sortie',
|
||||
addPageNumbers: 'Ajouter Numéros Page',
|
||||
addTimestamp: 'Ajouter Timestamp',
|
||||
watermarkText: 'Texte Filigrane',
|
||||
messageHistoryWindowSize:
|
||||
"Taille de la fenêtre d'historique des messages",
|
||||
messageHistoryWindowSizeTip:
|
||||
@ -1173,7 +1189,6 @@ export default {
|
||||
datatype: 'Type MIME de la requête HTTP',
|
||||
insertVariableTip: `Entrer / Insérer des variables`,
|
||||
historyversion: 'Historique des versions',
|
||||
filename: 'Nom du fichier',
|
||||
version: {
|
||||
created: 'Créé',
|
||||
details: 'Détails de la version',
|
||||
|
||||
Reference in New Issue
Block a user