mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add TagFeatureItem #4368 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -11,7 +11,7 @@ export interface IKnowledge {
|
||||
doc_num: number;
|
||||
id: string;
|
||||
name: string;
|
||||
parser_config: Parserconfig;
|
||||
parser_config: ParserConfig;
|
||||
parser_id: string;
|
||||
permission: string;
|
||||
similarity_threshold: number;
|
||||
@ -25,9 +25,22 @@ export interface IKnowledge {
|
||||
nickname?: string;
|
||||
}
|
||||
|
||||
export interface Parserconfig {
|
||||
from_page: number;
|
||||
to_page: number;
|
||||
export interface Raptor {
|
||||
use_raptor: boolean;
|
||||
}
|
||||
|
||||
export interface ParserConfig {
|
||||
from_page?: number;
|
||||
to_page?: number;
|
||||
auto_keywords?: number;
|
||||
auto_questions?: number;
|
||||
chunk_token_num?: number;
|
||||
delimiter?: string;
|
||||
html4excel?: boolean;
|
||||
layout_recognize?: boolean;
|
||||
raptor?: Raptor;
|
||||
tag_kb_ids?: string[];
|
||||
topn_tags?: number;
|
||||
}
|
||||
|
||||
export interface IKnowledgeFileParserConfig {
|
||||
@ -83,8 +96,11 @@ export interface IChunk {
|
||||
doc_id: string;
|
||||
doc_name: string;
|
||||
img_id: string;
|
||||
important_kwd: any[];
|
||||
important_kwd?: string[];
|
||||
question_kwd?: string[]; // keywords
|
||||
tag_kwd?: string[];
|
||||
positions: number[][];
|
||||
tag_feas?: Record<string, number>;
|
||||
}
|
||||
|
||||
export interface ITestingChunk {
|
||||
|
||||
Reference in New Issue
Block a user