feat: disable image_ocr by default in text processing stores (#149)

main
haozhenfei 3 months ago committed by GitHub
parent 9dcdb70508
commit f93b60512f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      frontend/packages/data/knowledge/knowledge-resource-processor-base/src/features/knowledge-type/text/first-party/local/add/store/store.ts
  2. 4
      frontend/packages/data/knowledge/knowledge-resource-processor-base/src/features/knowledge-type/text/first-party/local/resegment/store/store.ts
  3. 4
      frontend/packages/data/knowledge/knowledge-resource-processor-base/src/features/resegment/text/store/store.ts

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { devtools } from 'zustand/middleware';
import { create } from 'zustand';
import { merge } from 'lodash-es';
@ -49,7 +49,7 @@ const getDefaultTextLocalAddUpdateState: () => UploadTextLocalAddUpdateState =
parsing_type: ParsingType.AccurateParsing,
image_extraction: true,
table_extraction: true,
image_ocr: true,
image_ocr: false,
},
indexStrategy: {},
filterStrategy: [],

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { devtools } from 'zustand/middleware';
import { create } from 'zustand';
import { merge } from 'lodash-es';
@ -48,7 +48,7 @@ const getDefaultTextLocalResegmentState: () => UploadTextLocalResegmentState =
parsing_type: ParsingType.AccurateParsing,
image_extraction: true,
table_extraction: true,
image_ocr: true,
image_ocr: false,
},
indexStrategy: {},
filterStrategy: [],

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { devtools } from 'zustand/middleware';
import { create } from 'zustand';
import { merge } from 'lodash-es';
@ -36,7 +36,7 @@ const getDefaultTextResegmentState: () => UploadTextResegmentState = () => ({
parsingStrategy: {
parsing_type: ParsingType.AccurateParsing,
image_extraction: true,
image_ocr: true,
image_ocr: false,
table_extraction: true,
},
filterStrategy: [],

Loading…
Cancel
Save