csv.mdx 549 B

1234567891011121314
  1. ---
  2. title: 'CSV'
  3. ---
  4. ### CSV file
  5. To add any csv file, use the data_type as `csv`. `csv` allows remote urls and conventional file paths. Headers are included for each line, so if you have an `age` column, `18` will be added as `age: 18`. Eg:
  6. ```python
  7. app.add('https://example.com/content/sheet.csv', data_type="csv")
  8. app.add('content/sheet.csv', data_type="csv")
  9. ```
  10. Note: There is a size limit allowed for csv file beyond which it can throw error. This limit is set by the LLMs. Please consider chunking large csv files into smaller csv files.