mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: add graph tab to header #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -126,27 +126,51 @@ export const initialBeginValues = {
|
||||
prologue: `Hi! I'm your assistant, what can I do for you?`,
|
||||
};
|
||||
|
||||
export const initialGenerateValues = {
|
||||
// parameters: ModelVariableType.Precise,
|
||||
// temperatureEnabled: true,
|
||||
const initialLlmBaseValues = {
|
||||
temperature: 0.1,
|
||||
top_p: 0.3,
|
||||
frequency_penalty: 0.7,
|
||||
presence_penalty: 0.4,
|
||||
max_tokens: 512,
|
||||
max_tokens: 256,
|
||||
};
|
||||
|
||||
export const initialGenerateValues = {
|
||||
// parameters: ModelVariableType.Precise,
|
||||
// temperatureEnabled: true,
|
||||
...initialLlmBaseValues,
|
||||
prompt: `Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:
|
||||
{cluster_content}
|
||||
The above is the content you need to summarize.`,
|
||||
cite: true,
|
||||
};
|
||||
|
||||
export const initialRewriteQuestionValues = {
|
||||
...initialLlmBaseValues,
|
||||
loop: 1,
|
||||
};
|
||||
|
||||
export const initialRelevantValues = {
|
||||
...initialLlmBaseValues,
|
||||
};
|
||||
|
||||
export const initialCategorizeValues = {
|
||||
...initialLlmBaseValues,
|
||||
category_description: {},
|
||||
};
|
||||
|
||||
export const initialMessageValues = {
|
||||
messages: [],
|
||||
};
|
||||
|
||||
export const initialFormValuesMap = {
|
||||
[Operator.Begin]: initialBeginValues,
|
||||
[Operator.Retrieval]: initialRetrievalValues,
|
||||
[Operator.Generate]: initialGenerateValues,
|
||||
[Operator.Answer]: {},
|
||||
[Operator.Categorize]: {},
|
||||
[Operator.Relevant]: {},
|
||||
[Operator.Categorize]: initialCategorizeValues,
|
||||
[Operator.Relevant]: initialRelevantValues,
|
||||
[Operator.RewriteQuestion]: initialRewriteQuestionValues,
|
||||
[Operator.Message]: initialMessageValues,
|
||||
};
|
||||
|
||||
export const CategorizeAnchorPointPositions = [
|
||||
|
||||
Reference in New Issue
Block a user