Working with Files in Clarity

Clarity agents can work with uploaded files to search for content, analyze content, and interpret files using code. Currently, the GPT-4o and GPT-4o-mini agents support file uploads. In addition, these agents are also able to generate files downloadable files in different file formats. 

File Uploads

​For searching within a file, the following file types are supported: 

  • Text Files: .doc, .docx, .pdf, .pptx, .txt, .md, .tex
  • Data Files: .json
  • Code Files: .c, .cpp, .cs, .css, .html, .java, .js, .php, .py, .rb, .sh, .ts

​For interpreting a file using code, the following file types are supported: 

  • Text Files: .doc, .docx, .pdf, .pptx, .txt, .md, .tex
  • Data Files: .csv, .xlsx, .json, .xml
  • Code Files: .c, .cpp, .cs, .css, .html, .java, .js, .php, .py, .rb, .sh, .ts
  • Image Files: .gif, .jpeg, .jpg, .png
  • Compressed/Archive Files: .tar, .zip

Working with uploaded files 

For better results when working with uploaded files, specify the type of the uploaded file in your prompt. For example, you could say: ‘Please use code to summarize the uploaded .xlsx file.’

File Creation

The GPT-4o and GPT-4o-mini agents can also be used to generate downloadable files with the following formats:

  • Text Files: .txt, .md, .rtf, ,tex 
  • Spreadsheet Files: .csv, .ods, .xlsx, .xls 
  • Database Files: .db, .json, .sql, .xml 
  • Document Files: .pdf, .docx .pptx .odt .odp 
  • Image Files: .png, .jpg, .jpeg, .gif, .svg, .bmp 
  • Code Files: .py, .java, .c, .cpp, .js , .html, .css , sh, .r, .tsv 
  • Archive Files: .zip, .tar, .gz, .7z 

You can prompt Clarity to output downloadable files by specifying the desired format in your prompt. For example, you could say: ‘Please generate a PowerPoint using the answer you generated.’