--- title: "PreProcessSegments" slug: "preprocesssegments" updated: 2026-06-03T09:27:45Z published: 2026-06-03T09:27:45Z canonical: "docs.datajet.app/preprocesssegments" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # PreProcessSegments Processes *.tsv input files to create smaller input data files for ProcessSegments | Key | Value(s) | Description | | --- | --- | --- | | method | "PreProcessSegments" | Processes *.tsv input files to create smaller input data files for ProcessSegments | | sourcepath | "Path to input data" | Location of input files (Note: this should match the "sourcepath" key for [ProcessSegments](/v1/docs/processsegments)) | Input files are in format *.tsv Two types of pre-processed file are generated: - *.tsv.hash - *.tsv.hash.seg Once pre-processing files have been generated, *.tsv files can be deleted. Pre-processed files are ~1/3 the size of *.tsv input files. To use pre-processing files and enable performance enhancements, **ProcessSegments** must have the following property set: ```json "intermediateMode": true, ``` ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1780477240461.png) ```json { "method": "PreProcessSegments", "sourcepath": "/home/datasources/campaignsource", "project": "campaign-full" } ```