Download web/src/interfaces/database/flow.ts from retopara/ragflow: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/retopara/ragflow/resolve/5000eb5743259ce6239c47665d0a707e293f94de/web/src/interfaces/database/flow.ts
- Command line
-
hf download hf://spaces/retopara/ragflow@5000eb5743259ce6239c47665d0a707e293f94de/web/src/interfaces/database/flow.ts
-
curl -L -o flow.ts https://huggingface.co/spaces/retopara/ragflow/resolve/5000eb5743259ce6239c47665d0a707e293f94de/web/src/interfaces/database/flow.ts
1.06 kB
| import { Edge, Node } from 'reactflow'; | |
| import { IReference, Message } from './chat'; | |
| export type DSLComponents = Record<string, IOperator>; | |
| export interface DSL { | |
| components: DSLComponents; | |
| history: any[]; | |
| path?: string[][]; | |
| answer?: any[]; | |
| graph?: IGraph; | |
| messages: Message[]; | |
| reference: IReference[]; | |
| } | |
| export interface IOperator { | |
| obj: IOperatorNode; | |
| downstream: string[]; | |
| upstream: string[]; | |
| } | |
| export interface IOperatorNode { | |
| component_name: string; | |
| params: Record<string, unknown>; | |
| } | |
| export interface IGraph { | |
| nodes: Node[]; | |
| edges: Edge[]; | |
| } | |
| export interface IFlow { | |
| avatar: null; | |
| canvas_type: null; | |
| create_date: string; | |
| create_time: number; | |
| description: null; | |
| dsl: DSL; | |
| id: string; | |
| title: string; | |
| update_date: string; | |
| update_time: number; | |
| user_id: string; | |
| } | |
| export interface IFlowTemplate { | |
| avatar: string; | |
| canvas_type: string; | |
| create_date: string; | |
| create_time: number; | |
| description: string; | |
| dsl: DSL; | |
| id: string; | |
| title: string; | |
| update_date: string; | |
| update_time: number; | |
| } | |