From 9a3423f35fca5379eaa36740b3d50e095b337f20 Mon Sep 17 00:00:00 2001 From: Lars Date: Wed, 3 Sep 2025 07:14:05 +0200 Subject: [PATCH] =?UTF-8?q?app/core/chunk=5Fconfig.py=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/chunk_config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/core/chunk_config.py diff --git a/app/core/chunk_config.py b/app/core/chunk_config.py new file mode 100644 index 0000000..6780b5d --- /dev/null +++ b/app/core/chunk_config.py @@ -0,0 +1,13 @@ +TYPE_SIZES = { + "thought": {"target": (150, 250), "max": 300, "overlap": (30, 40)}, + "experience":{"target": (250, 350), "max": 450, "overlap": (40, 60)}, + "journal": {"target": (200, 300), "max": 400, "overlap": (30, 50)}, + "task": {"target": (120, 200), "max": 250, "overlap": (20, 30)}, + "project": {"target": (300, 450), "max": 600, "overlap": (50, 70)}, + "concept": {"target": (250, 400), "max": 550, "overlap": (40, 60)}, + "source": {"target": (200, 350), "max": 500, "overlap": (30, 50)}, +} +DEFAULT = {"target": (250, 350), "max": 500, "overlap": (40, 60)} + +def get_sizes(note_type: str): + return TYPE_SIZES.get(str(note_type).lower(), DEFAULT)