mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 12:55:52 +08:00
feat: RAPTOR is not displayed when the parsing method is picture. (#897)
### What problem does this PR solve? Implements RAPTOR for better chunking #882 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
eb51ad73d6
commit
070b53f3bf
@ -12,7 +12,7 @@ import {
|
|||||||
} from 'antd';
|
} from 'antd';
|
||||||
import random from 'lodash/random';
|
import random from 'lodash/random';
|
||||||
|
|
||||||
export const excludedParseMethods = ['table', 'resume', 'one'];
|
export const excludedParseMethods = ['table', 'resume', 'one',"picture"];
|
||||||
|
|
||||||
export const showRaptorParseConfiguration = (parserId: string) => {
|
export const showRaptorParseConfiguration = (parserId: string) => {
|
||||||
return !excludedParseMethods.includes(parserId);
|
return !excludedParseMethods.includes(parserId);
|
||||||
@ -78,7 +78,7 @@ const ParseConfiguration = () => {
|
|||||||
<Form.Item
|
<Form.Item
|
||||||
name={['parser_config', 'raptor', 'max_token']}
|
name={['parser_config', 'raptor', 'max_token']}
|
||||||
noStyle
|
noStyle
|
||||||
initialValue={128}
|
initialValue={256}
|
||||||
rules={[
|
rules={[
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -243,7 +243,7 @@ export default {
|
|||||||
prompt: '提示詞',
|
prompt: '提示詞',
|
||||||
promptMessage: '提示詞是必填項',
|
promptMessage: '提示詞是必填項',
|
||||||
promptText: `请請總結以下段落。 小心數字,不要編造。 段落如下:
|
promptText: `请請總結以下段落。 小心數字,不要編造。 段落如下:
|
||||||
{集群內容}
|
{cluster_content}
|
||||||
以上就是你需要總結的內容。`,
|
以上就是你需要總結的內容。`,
|
||||||
maxToken: '最大token數',
|
maxToken: '最大token數',
|
||||||
maxTokenMessage: '最大token數是必填項',
|
maxTokenMessage: '最大token數是必填項',
|
||||||
|
@ -260,7 +260,7 @@ export default {
|
|||||||
prompt: '提示词',
|
prompt: '提示词',
|
||||||
promptMessage: '提示词是必填项',
|
promptMessage: '提示词是必填项',
|
||||||
promptText: `请总结以下段落。 小心数字,不要编造。 段落如下:
|
promptText: `请总结以下段落。 小心数字,不要编造。 段落如下:
|
||||||
{集群内容}
|
{cluster_content}
|
||||||
以上就是你需要总结的内容。`,
|
以上就是你需要总结的内容。`,
|
||||||
maxToken: '最大token数',
|
maxToken: '最大token数',
|
||||||
maxTokenMessage: '最大token数是必填项',
|
maxTokenMessage: '最大token数是必填项',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user