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

[Gongwen_eng] add: Official document generator in English #41

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

x85432
Copy link
Contributor

@x85432 x85432 commented Sep 2, 2024

This pull request introduces a new app called gongwen_english, designed to improve the time efficiency of official document generation.

Key Features

1. Cooperation with TAIDE and Llama3.1

  • TAIDE: Excellent for refining official documents.
    • TAIDE is particularly useful in the final stage for revising plain language into formal vocabulary in Chinese. We will detail the format improvements in the few-shot section.
  • Llama3.1: Ideal for generating content and summaries.
    -Llama3.1 is responsible for expanding user input, generating the main topics, and providing relevant information.

2. Flexible Stages

  • Function List:
    • After the initial conversation with the bot, users will receive a message showing the correspondence between numbers and functions.
      -If a generated result does not meet user expectations, steps can be skipped to quickly regenerate a new result.

image

  • Lower Cost for Mistakes:
    • During development, we noticed that canceling a selected choice was time-consuming. Therefore, we designed a method to improve the user experience by allowing easy retraction of choices (using '/n').

image

3. Few-shot Learning for Officialization

  • We experimented with multiple prompts for better official document formatting throughout development. Instead of giving detailed instructions, showing examples proved to be more effective.
  • For each different process, three examples will be randomly selected from ten available examples.

4. Future Improvement Path

  • The primary improvement focus will be on the final officialization stage.
  • Provide better few-shot examples to ensure more formal language and structure.
  • Explore the use of Multi-Agent systems to generate necessary content and eliminate redundant information.
  • Consider parallelizing the Main Topic and Information stages.

Flowchart for gongwen_eng

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant