mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Supports chatting with files/images #1880 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -66,6 +66,7 @@ export interface IConversation {
|
||||
export interface Message {
|
||||
content: string;
|
||||
role: MessageType;
|
||||
doc_ids?: string[];
|
||||
}
|
||||
|
||||
export interface IReference {
|
||||
|
||||
35
web/src/interfaces/database/document.ts
Normal file
35
web/src/interfaces/database/document.ts
Normal file
@ -0,0 +1,35 @@
|
||||
export interface IDocumentInfo {
|
||||
chunk_num: number;
|
||||
create_date: string;
|
||||
create_time: number;
|
||||
created_by: string;
|
||||
id: string;
|
||||
kb_id: string;
|
||||
location: string;
|
||||
name: string;
|
||||
parser_config: Parserconfig;
|
||||
parser_id: string;
|
||||
process_begin_at: null;
|
||||
process_duation: number;
|
||||
progress: number;
|
||||
progress_msg: string;
|
||||
run: string;
|
||||
size: number;
|
||||
source_type: string;
|
||||
status: string;
|
||||
thumbnail: string;
|
||||
token_num: number;
|
||||
type: string;
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
}
|
||||
|
||||
interface Parserconfig {
|
||||
chunk_token_num: number;
|
||||
layout_recognize: boolean;
|
||||
raptor: Raptor;
|
||||
}
|
||||
|
||||
interface Raptor {
|
||||
use_raptor: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user