> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prettywhale.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Supported File Formats and Sources

> Learn which file formats PrettyWhale.ai accepts for sample data upload during discovery, and how to prepare your files for best results.

PrettyWhale.ai's discovery engine reads a sample file you provide and uses it to infer field names, data types, nullability patterns, quality characteristics, etc.. The quality of that analysis, and therefore the quality of the generated pipeline, depends directly on how well your sample represents the real data. This page describes the supported file formats and how to prepare a sample that gives the model everything it needs.

## Supported formats

PrettyWhale.ai currently supports the following sample file formats.

* JSON
* CSV

<Note>
  If your data is in a format not listed above  (for example: Parquet, Avro, XML, or a fixed-width text file), contact support at [contact@prettywhale.ai](mailto:contact@prettywhale.ai).

  The team can advise on format conversion options or confirm whether adjustment can be made to support your format.
</Note>

## Best practices for preparing sample files

A well-prepared sample produces sharper statistical analysis, more accurate type inference, and more comprehensive generated code. Follow these guidelines before uploading:

* **Include at least 100 to 200 records:** A larger sample gives PrettyWhale.ai enough data to calculate meaningful rates, detect formatting inconsistencies, and produce representative quality statistics. A five-row sample will work, but the generated quality rules will be less precise.

<Warning>
  The sample file can not exceed 50k max.
</Warning>

* **Include edge cases:** Make sure your sample contains nulls, empty strings, unusual values, and boundary numbers (for example, zero-value amounts or maximum-length strings).
* **Use real production data (anonymized if necessary):** Synthetic or hand-crafted samples often miss the quirks that exist in live data (mixed date formats, inconsistent casing, trailing whitespace). Anonymize personal data fields if needed, but keep the structure and value distributions intact.

## Example files

Here is an example of a valid sample files if you want to test the solution: [sample.zip](https://kdrive.infomaniak.com/app/share/2205832/901d2003-4bb7-4ee2-80ff-be8cdaeee5e6)
