tencent cloud

File Comparison Task
Last updated: 2025-08-12 17:06:13
File Comparison Task
Last updated: 2025-08-12 17:06:13
The file comparison task is used to compare the differences between two files, such as file names, file contents, and Q&A pairs generated from file. It assists customers in handling duplicate or similar content in the knowledge base and guarantees the effect of knowledge Q&A.

Feature Overview

How to Trigger a File Comparison Task

The ways to trigger a file comparison task include automatic trigger comparison and manual trigger comparison.
1. Automatic trigger comparison: A file comparison task automatically generated by the system when the following conditions are met.
When the file names are the same: When the name and file type of the file uploaded by the local customer are the same as those in the file list, but the file content is different, and the import status of the newly imported file (i.e., the new file) is the pending release status, the file comparison will be automatically triggered.
Same website address source: When a customer imports a file with the same website address, and the import status of the new file is the pending release status, the file comparison will be automatically triggered.
Note:
To view the file comparison task entry: After triggering file comparison, you can click the "View Comparison" notification in the banner display above the file list or the "File Comparison Task" button in the top right corner of the file list to enter the file comparison task list.



2. Manual comparison: Support customers to add file comparison tasks in the file comparison task list.
Select 2 files from the file list (only supports selecting files in the pending release and published status). Once saved, 1 file comparison task will be generated.




How to Handle File Comparison Tasks

1. The status of a file comparison task includes pending, in processing, invalid, and completed.
Status
Status Description
Pending processing
For comparison tasks that support operations, after selecting file operations and QA operations and clicking Start Processing, it will enter the processing status (if no Q&A pairs have been generated for the file, there is no need to select QA operations).
Processing
A file comparison task belongs to an asynchronous task. It is in the processing status during execution. The processing status is a temporary state.
Expired
After file deletion, the comparison task will become invalid.
Completed
After the comparison task is completed, the status is completed and the comparison task result is viewable.



2. Start processing the file comparison task
For pending status file comparison tasks, after selecting "File Operation" and "QA Operation", it supports one-by-one or batch processing tasks.
New files: For recently imported files, the list will display the import time and the situation of Q&A pair generation.
Old files: Files imported earlier, the list will display the import time and the situation of Q&A pair generation.
Comparison reasons: including identical name, identical website address, and manual addition, case-sensitive by trigger source.
View comparison details between two files. The different parts are distinguished by color.



File operations: Support customization to choose to delete old and new files, rename old and new files, etc.
QA operations: If the file has generated Q&A pairs, support generating Q&A based on file difference fragments, and associate the Q&A pairs of deleted files with reserved files.

Use Cases

Scenario 1: File update scenario
Upload a file with the same name will automatically trigger a comparison task. The operator can delete the old file and its Q&A pairs through the comparison task.
Scenario 2: Generate Q&A pairs from file difference fragments
Upload two files with similar content. The operator can manually create a comparison task and select the QA operation of "Generate Q&A from the difference fragments of the new file".


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback