feat: display chunk type in chunk editor and dialog (#12086)

### What problem does this PR solve?

Display chunk type in chunk editor and dialog, may be one of below:
- Image
- Table
- Text

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Jimmy Ben Klieve
2025-12-22 16:45:47 +08:00
committed by GitHub
parent 5d391fb1f9
commit b42b5fcf65
7 changed files with 83 additions and 37 deletions

View File

@ -116,12 +116,15 @@ export interface ITenantInfo {
tts_id: string;
}
export type ChunkDocType = 'image' | 'table';
export interface IChunk {
available_int: number; // Whether to enable, 0: not enabled, 1: enabled
chunk_id: string;
content_with_weight: string;
doc_id: string;
doc_name: string;
doc_type_kwd?: ChunkDocType;
image_id: string;
important_kwd?: string[];
question_kwd?: string[]; // keywords