feat: run flow (#1076)

### What problem does this PR solve?

feat: run flow #918 

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-06 15:00:37 +08:00
committed by GitHub
parent d9dc183a0e
commit db35e9df4f
9 changed files with 88 additions and 20 deletions

View File

@@ -1,5 +1,3 @@
import { ModelVariableType } from '@/constants/knowledge';
export enum Operator {
Begin = 'Begin',
Retrieval = 'Retrieval',
@@ -18,8 +16,8 @@ export const initialBeginValues = {
};
export const initialGenerateValues = {
parameters: ModelVariableType.Precise,
temperatureEnabled: false,
// parameters: ModelVariableType.Precise,
// temperatureEnabled: true,
temperature: 0.1,
top_p: 0.3,
frequency_penalty: 0.7,
@@ -30,3 +28,10 @@ export const initialGenerateValues = {
The above is the content you need to summarize.`,
cite: true,
};
export const initialFormValuesMap = {
[Operator.Begin]: initialBeginValues,
[Operator.Retrieval]: initialRetrievalValues,
[Operator.Generate]: initialGenerateValues,
[Operator.Answer]: {},
};