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

This commit is contained in:
haozhenfei 2025-07-28 18:03:03 +08:00 committed by GitHub
parent 9dcdb70508
commit f93b60512f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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