mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 07:26:47 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user