RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Feat: The value of data operations operators can be either input or referenced from variables. #10427 (#11037)
balibabu87c9a054d308
diff --git a/web/src/pages/agent/constant/index.tsx b/web/src/pages/agent/constant/index.tsxindex 5470bb7c72..3abe3ca2cb 100644--- a/web/src/pages/agent/constant/index.tsx+++ b/web/src/pages/agent/constant/index.tsx@@ -594,10 +594,7 @@ export const initialAgentValues = {type: 'string',value: '',},- [AgentStructuredOutputField]: {- type: 'Object Array String Number Boolean',- value: '',- },+ [AgentStructuredOutputField]: {},},};diff --git a/web/src/pages/agent/form/components/query-variable.tsx b/web/src/pages/agent/form/components/query-variable.tsxindex d315283c02..08efb94ca5 100644--- a/web/src/pages/agent/form/components/query-variable.tsx+++ b/web/src/pages/agent/form/components/query-variable.tsx@@ -38,8 +38,10 @@ export function QueryVariable({? nextOptions.map((x) => {return {...x,- options: x.options.filter((y) =>- types?.some((x) => toLower(y.type).includes(x)),+ options: x.options.filter(+ (y) =>+ types?.some((x) => toLower(y.type).includes(x)) ||+ y.type === undefined, // agent structured output),};})diff --git a/web/src/pages/agent/form/data-operations-form/filter-values.tsx b/web/src/pages/agent/form/data-operations-form/filter-values.tsxindex fca49f5ef5..72a80cb094 100644--- a/web/src/pages/agent/form/data-operations-form/filter-values.tsx+++ b/web/src/pages/agent/form/data-operations-form/filter-values.tsx@@ -9,6 +9,7 @@ import { ReactNode } from 'react';import { useFieldArray, useFormContext } from 'react-hook-form';import { DataOperationsOperatorOptions } from '../../constant';import { DynamicFormHeader } from '../components/dynamic-fom-header';+import { PromptEditor } from '../components/prompt-editor';type SelectKeysProps = {name: string;@@ -67,7 +68,7 @@ export function FilterValues({<Separator className="w-2" /><RAGFlowFormItem name={valueFieldAlias} className="flex-1">- <Input></Input>+ <PromptEditor showToolbar={false} multiLine={false} /></RAGFlowFormItem><Button variant={'ghost'} onClick={() => remove(index)}><X />diff --git a/web/src/pages/agent/form/data-operations-form/select-keys.tsx b/web/src/pages/agent/form/data-operations-form/select-keys.tsxindex 2d494463b1..9436c7c868 100644--- a/web/src/pages/agent/form/data-operations-form/select-keys.tsx+++ b/web/src/pages/agent/form/data-operations-form/select-keys.tsx@@ -1,10 +1,10 @@import { RAGFlowFormItem } from '@/components/ragflow-form';import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';import { X } from 'lucide-react';import { ReactNode } from 'react';import { useFieldArray, useFormContext } from 'react-hook-form';import { DynamicFormHeader } from '../components/dynamic-fom-header';+import { PromptEditor } from '../components/prompt-editor';type SelectKeysProps = {name: string;@@ -33,7 +33,7 @@ export function SelectKeys({ name, label, tooltip }: SelectKeysProps) {return (<div key={field.id} className="flex items-center gap-2"><RAGFlowFormItem name={nameField} className="flex-1">- <Input></Input>+ <PromptEditor showToolbar={false} multiLine={false} /></RAGFlowFormItem><Button variant={'ghost'} onClick={() => remove(index)}><X />diff --git a/web/src/pages/agent/form/data-operations-form/updates.tsx b/web/src/pages/agent/form/data-operations-form/updates.tsxindex fba1cd5ac7..d401e04632 100644--- a/web/src/pages/agent/form/data-operations-form/updates.tsx+++ b/web/src/pages/agent/form/data-operations-form/updates.tsx@@ -6,6 +6,7 @@ import { X } from 'lucide-react';import { ReactNode } from 'react';import { useFieldArray, useFormContext } from 'react-hook-form';import { DynamicFormHeader } from '../components/dynamic-fom-header';+import { PromptEditor } from '../components/prompt-editor';type SelectKeysProps = {name: string;@@ -47,7 +48,7 @@ export function Updates({</RAGFlowFormItem><Separator className="w-2" /><RAGFlowFormItem name={valueFieldAlias} className="flex-1">- <Input></Input>+ <PromptEditor showToolbar={false} multiLine={false} /></RAGFlowFormItem><Button variant={'ghost'} onClick={() => remove(index)}><X />