Feat: Search for knowledge-base-level graph nodes. (#17444)

This commit is contained in:
balibabu
2026-07-27 21:03:30 +08:00
committed by GitHub
parent 1ae1dd1edb
commit 1cce9b64f1
98 changed files with 3614 additions and 402 deletions

View File

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

View File

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

View File

@@ -58,6 +58,8 @@ export interface IFetchArtifactTopicListRequestParams {
export interface IFetchArtifactGraphRequestParams {
node?: string;
keywords?: string;
top_n?: number;
}
export interface IUpdateArtifactPageRequestBody {