From f7dd41ed4def1007465c526320fe9eb9173ecbee Mon Sep 17 00:00:00 2001 From: komalg1 Date: Mon, 12 Feb 2024 13:20:07 +0000 Subject: [PATCH] fix for uploading jpg & png (#286) --- code/utilities/helpers/ConfigHelper.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/code/utilities/helpers/ConfigHelper.py b/code/utilities/helpers/ConfigHelper.py index bb6473488..43cab0090 100644 --- a/code/utilities/helpers/ConfigHelper.py +++ b/code/utilities/helpers/ConfigHelper.py @@ -184,6 +184,24 @@ def get_default_config(): }, "loading": {"strategy": LoadingStrategy.DOCX}, }, + { + "document_type": "jpg", + "chunking": { + "strategy": ChunkingStrategy.LAYOUT, + "size": 500, + "overlap": 100, + }, + "loading": {"strategy": LoadingStrategy.LAYOUT}, + }, + { + "document_type": "png", + "chunking": { + "strategy": ChunkingStrategy.LAYOUT, + "size": 500, + "overlap": 100, + }, + "loading": {"strategy": LoadingStrategy.LAYOUT}, + }, ], "logging": {"log_user_interactions": True, "log_tokens": True}, "orchestrator": {"strategy": "openai_function"},