mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 17:06:42 +08:00
33 lines
741 B
TypeScript
33 lines
741 B
TypeScript
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[];
|
|
}
|