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)