mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-30 12:39:27 +08:00
Feat: Search for knowledge-base-level graph nodes. (#17444)
This commit is contained in:
@@ -33,6 +33,7 @@ export interface ISwitchForm {
|
||||
import { AgentCategory } from '@/constants/agent';
|
||||
import { Edge, Node } from '@xyflow/react';
|
||||
import { IReference, Message } from './chat';
|
||||
import { ICompilationTemplateGroup } from './compilation-template';
|
||||
import { IDataset } from './dataset';
|
||||
|
||||
export type DSLComponents = Record<string, IOperator>;
|
||||
@@ -85,6 +86,19 @@ export declare interface IFlow {
|
||||
tags?: string;
|
||||
}
|
||||
|
||||
// GET /agents merges compilation template groups into the agent list when no
|
||||
// canvas_category is requested; every item carries this discriminator.
|
||||
export enum AgentListItemType {
|
||||
Agent = 'agent',
|
||||
CompilationTemplateGroup = 'compilation_template_group',
|
||||
}
|
||||
|
||||
export type AgentListItem =
|
||||
| (IFlow & { type?: AgentListItemType.Agent })
|
||||
| (ICompilationTemplateGroup & {
|
||||
type: AgentListItemType.CompilationTemplateGroup;
|
||||
});
|
||||
|
||||
export interface IFlowTemplate {
|
||||
avatar: string;
|
||||
canvas_type: string;
|
||||
|
||||
@@ -289,9 +289,19 @@ export interface IArtifactGraphEntity {
|
||||
source_chunk_ids?: string[];
|
||||
}
|
||||
|
||||
export interface IArtifactAlteration {
|
||||
removed: number;
|
||||
newly_uploaded: number;
|
||||
removed_doc_ids: string[];
|
||||
newly_uploaded_doc_ids: string[];
|
||||
involved_doc_ids: string[];
|
||||
eligible_doc_ids: string[];
|
||||
}
|
||||
|
||||
export interface IArtifactGraphRelation {
|
||||
from: string;
|
||||
to: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface IArtifactGraph {
|
||||
|
||||
@@ -58,6 +58,8 @@ export interface IFetchArtifactTopicListRequestParams {
|
||||
|
||||
export interface IFetchArtifactGraphRequestParams {
|
||||
node?: string;
|
||||
keywords?: string;
|
||||
top_n?: number;
|
||||
}
|
||||
|
||||
export interface IUpdateArtifactPageRequestBody {
|
||||
|
||||
Reference in New Issue
Block a user