-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Feature/docs generator #11858
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
base: main
Are you sure you want to change the base?
Feature/docs generator #11858
Conversation
- Add complete Italian translation file with all UI sections - Register Italian in LanguageAbbreviation enum and language maps - Configure Italian translation in i18n config - Add Italiano to language selector dropdown
- Add new Docs Generator agent component (docs_generator.py) - Support markdown-to-PDF conversion with tables, lists, code blocks - Add PDF download button component for chat interface - Add component form and configuration UI - Add translations for all supported languages - Add component documentation guide - Support multiple output formats: PDF, DOCX, TXT - Configurable styling, logo, orientaton.. - Download button integration with Message component
|
Appreciations! |
When using only the download variable from Docs Generator in a Message component, the download button now displays cleanly without showing the JSON content.
|
Cool! There're conflicts, please resolve them. |
|
@LingYi-Z01 We made it using the begin component in 'TASK' Mode (so doesnt waits for user query in chat to start) and for us just works fine. We personally never encoutered this problem but if you end up with a blank page maybe from dev console (F12 in the browser) or in the backend logs you can see the error. Feel free to export and share your json agent so we can test it too. Or you can open a new discussion about it and i'll follow it from there! @KevinHuSh can i solve the conflicts or should i wait for @buua436 review? Thx. |







Type of change
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
Frontend
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