mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-24 09:26:48 +08:00
Feat: Add a data compilation layer. (#16777)
### Summary Feat: Add a data compilation layer.
This commit is contained in:
32
web/src/interfaces/database/document-structure.ts
Normal file
32
web/src/interfaces/database/document-structure.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { CompilationTemplateKind } from '@/constants/compilation';
|
||||
|
||||
export type StructureTemplateKind = CompilationTemplateKind | 'raptor';
|
||||
|
||||
export interface IStructureGraphEntity {
|
||||
id?: string;
|
||||
name?: string;
|
||||
aliases?: string[];
|
||||
description?: string;
|
||||
discription?: string;
|
||||
mention_count?: number;
|
||||
source_chunk_ids?: string[];
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface IStructureGraphRelation {
|
||||
from: string;
|
||||
to: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface IStructureGraphTemplate {
|
||||
kind: StructureTemplateKind;
|
||||
template_id: string;
|
||||
template_name: string;
|
||||
entities: IStructureGraphEntity[];
|
||||
relations: IStructureGraphRelation[];
|
||||
}
|
||||
|
||||
export interface IStructureGraphResponse {
|
||||
templates: IStructureGraphTemplate[];
|
||||
}
|
||||
Reference in New Issue
Block a user