tencent cloud

File Comparison Task
Last updated:2026-02-05 10:00:03
File Comparison Task
Last updated: 2026-02-05 10:00:03
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.

Function Description

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 manually add a file comparison task by clicking File Comparison Task > clicking Add Comparison Task > selecting documents to compare > clicking Start Comparison to manually add a document comparison task.
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
Description
Pending processing
For comparison tasks that support operations, after selecting file operations and Q&A 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 Q&A 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 processing is completed, the status is completed. You can view the task result.
2. Start processing the file comparison task
For pending status file comparison tasks, after selecting "File Operation" and "Q&A 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 reason: including identical name, same website address, and manual addition, case-sensitive based on trigger source.
View comparison details between two files. The different parts are distinguished by color.
Click to view and you can intuitively see the comparison situation between two documents.

For example, in the following examples, you can intuitively see the detailed comparison between documents.



File operations: Support customization to choose to delete old and new files, rename old and new files, etc.
Q&A 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 Q&A 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