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:
balibabu
2024-05-23 14:13:09 +08:00
committed by GitHub
parent eb51ad73d6
commit 070b53f3bf
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import {
} from 'antd';
import random from 'lodash/random';
export const excludedParseMethods = ['table', 'resume', 'one'];
export const excludedParseMethods = ['table', 'resume', 'one',"picture"];
export const showRaptorParseConfiguration = (parserId: string) => {
return !excludedParseMethods.includes(parserId);
@ -78,7 +78,7 @@ const ParseConfiguration = () => {
<Form.Item
name={['parser_config', 'raptor', 'max_token']}
noStyle
initialValue={128}
initialValue={256}
rules={[
{
required: true,