Feat: Add TagFeatureItem #4368 (#4432)

### 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:
balibabu
2025-01-09 18:24:27 +08:00
committed by GitHub
parent dac54ded96
commit 300d8ecf51
15 changed files with 259 additions and 123 deletions

View File

@ -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 {