From 511452b284729bde7a8821b8ff7573218f002489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=80=E4=B8=81?= <1769123563@qq.com> Date: Wed, 19 Nov 2025 14:13:44 +0800 Subject: [PATCH] Update README-EN.md --- README-EN.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README-EN.md b/README-EN.md index 7458bb7..f2205f9 100644 --- a/README-EN.md +++ b/README-EN.md @@ -306,6 +306,7 @@ BettaFish/ ├── Dockerfile # Docker image build file ├── requirements.txt # Python dependency list ├── regenerate_latest_pdf.py # PDF regeneration utility script +├── report_engine_only.py # Report Engine CLI version (no Web interface required) ├── README.md # Chinese documentation ├── README-EN.md # English documentation ├── CONTRIBUTING.md # Chinese contribution guide @@ -565,6 +566,44 @@ python main.py --broad-topic --date 2024-01-20 python main.py --deep-sentiment --platforms xhs dy wb ``` +#### 6.4 Command-line Report Generation Tool + +If you don't need the Web interface, you can use the command-line tool to generate reports directly. This tool automatically retrieves the latest report files from the three analysis engines, skips file addition verification, and directly generates comprehensive reports. + +```bash +# Basic usage (automatically extract topic from filename) +python report_engine_only.py + +# Specify report topic +python report_engine_only.py --query "Civil Engineering Industry Analysis" + +# Skip PDF generation (even if system supports it) +python report_engine_only.py --skip-pdf + +# Show verbose logging +python report_engine_only.py --verbose + +# Show help information +python report_engine_only.py --help +``` + +**Features:** + +1. **Automatic Dependency Check**: The program automatically checks system dependencies required for PDF generation and provides installation instructions if missing +2. **Get Latest Files**: Automatically retrieves the latest analysis reports from three engine directories (`insight_engine_streamlit_reports`, `media_engine_streamlit_reports`, `query_engine_streamlit_reports`) +3. **File Confirmation**: Displays all selected file names, paths, and modification times, waiting for user confirmation (default input `y` to continue, input `n` to exit) +4. **Direct Report Generation**: Skips file addition verification and directly calls Report Engine to generate comprehensive reports +5. **Automatic File Saving**: + - HTML reports saved to `final_reports/` directory + - PDF reports (if dependencies available) saved to `final_reports/pdf/` directory + - File naming format: `final_report_{topic}_{timestamp}.html/pdf` + +**Notes:** + +- Ensure at least one of the three engine directories contains `.md` report files +- The command-line tool is independent of the Web interface and does not interfere with each other +- PDF generation requires system dependencies, see "Install PDF Export System Dependencies" section above + ## ⚙️ Advanced Configuration (Deprecated: Configuration has been unified to the `.env` file in the project root directory, and other sub-agents automatically inherit the root directory configuration) ### Modify Key Parameters