Overview
Trieve allows you to upload structured data in CSV and JSONL formats. We automatically create chunks for each row in the file, allowing you to search and filter your data easily.Uploading a CSV or JSONL File to Trieve
Since CSV and JSONL files can be large, our API allows you to provision a signed PUT URL to upload the file directly to our storage. Once the file is uploaded, Trieve will automatically process the file and create chunks for each row.Step 1: Request a Signed PUT URL
Use the /api/file/csv_or_jsonl to acquire a signed PUT URL for your CSV or JSONL file from the Trieve API. This URL is valid for 24 hours and allows you to upload the file directly to our storage. You can leverage themappings
field to control how the columns in the CSV or fields in the JSONL file are mapped to the chunks created by Trieve. This is optional and can be used to ensure that the data is structured correctly.
Step 2: Upload the File to the Signed PUT URL
Use the signed PUT URL provided by Trieve to upload the CSV or JSONL file to our storage. You can use tools likecurl
, wget
, or any other HTTP client to upload the file.