balibabu
commited on
Commit
·
19d0b0d
1
Parent(s):
dea956e
feat: RAPTOR is not displayed when the parsing method is picture. (#897)
Browse files### What problem does this PR solve?
Implements RAPTOR for better chunking #882
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/components/parse-configuration/index.tsx
CHANGED
@@ -12,7 +12,7 @@ import {
|
|
12 |
} from 'antd';
|
13 |
import random from 'lodash/random';
|
14 |
|
15 |
-
export const excludedParseMethods = ['table', 'resume', 'one'];
|
16 |
|
17 |
export const showRaptorParseConfiguration = (parserId: string) => {
|
18 |
return !excludedParseMethods.includes(parserId);
|
@@ -78,7 +78,7 @@ const ParseConfiguration = () => {
|
|
78 |
<Form.Item
|
79 |
name={['parser_config', 'raptor', 'max_token']}
|
80 |
noStyle
|
81 |
-
initialValue={
|
82 |
rules={[
|
83 |
{
|
84 |
required: true,
|
|
|
12 |
} from 'antd';
|
13 |
import random from 'lodash/random';
|
14 |
|
15 |
+
export const excludedParseMethods = ['table', 'resume', 'one',"picture"];
|
16 |
|
17 |
export const showRaptorParseConfiguration = (parserId: string) => {
|
18 |
return !excludedParseMethods.includes(parserId);
|
|
|
78 |
<Form.Item
|
79 |
name={['parser_config', 'raptor', 'max_token']}
|
80 |
noStyle
|
81 |
+
initialValue={256}
|
82 |
rules={[
|
83 |
{
|
84 |
required: true,
|
web/src/locales/zh-traditional.ts
CHANGED
@@ -243,7 +243,7 @@ export default {
|
|
243 |
prompt: '提示詞',
|
244 |
promptMessage: '提示詞是必填項',
|
245 |
promptText: `请請總結以下段落。 小心數字,不要編造。 段落如下:
|
246 |
-
{
|
247 |
以上就是你需要總結的內容。`,
|
248 |
maxToken: '最大token數',
|
249 |
maxTokenMessage: '最大token數是必填項',
|
|
|
243 |
prompt: '提示詞',
|
244 |
promptMessage: '提示詞是必填項',
|
245 |
promptText: `请請總結以下段落。 小心數字,不要編造。 段落如下:
|
246 |
+
{cluster_content}
|
247 |
以上就是你需要總結的內容。`,
|
248 |
maxToken: '最大token數',
|
249 |
maxTokenMessage: '最大token數是必填項',
|
web/src/locales/zh.ts
CHANGED
@@ -260,7 +260,7 @@ export default {
|
|
260 |
prompt: '提示词',
|
261 |
promptMessage: '提示词是必填项',
|
262 |
promptText: `请总结以下段落。 小心数字,不要编造。 段落如下:
|
263 |
-
{
|
264 |
以上就是你需要总结的内容。`,
|
265 |
maxToken: '最大token数',
|
266 |
maxTokenMessage: '最大token数是必填项',
|
|
|
260 |
prompt: '提示词',
|
261 |
promptMessage: '提示词是必填项',
|
262 |
promptText: `请总结以下段落。 小心数字,不要编造。 段落如下:
|
263 |
+
{cluster_content}
|
264 |
以上就是你需要总结的内容。`,
|
265 |
maxToken: '最大token数',
|
266 |
maxTokenMessage: '最大token数是必填项',
|