Working with Files
Clarity agents can analyze, interpret, and search uploaded files, and can also generate new, downloadable files. This guide outlines best practices for preparing files for upload and writing clear instructions to achieve the best results.
Uploading Files
In Clarity there is the possibility to upload files during a conversation and to a Custom Agent’s knowledge source. The following restrictions apply to files uploaded during conversations and to Custom Agent knowledge sources:
- Total Files: No limit on the total files uploaded to a conversation or Custom Agent
- Per Prompt: Up to 10 files can be uploaded simultaneously
- Individual file size limit: 512MB per file
- Extracted text content limit: 10,000,000 characters per file
Referencing Files in Your Custom Agent’s System Prompt
To ensure Clarity correctly identifies and works with files uploaded to your Custom Agent’s knowledge base, keep the following best practices in mind when referencing files in your Custom Agent’s system prompt:
- Use quotation marks around file names: For example, “quarterly_report” or “data_extract”
- Including the file extension is helpful, though not strictly required: For example, “quarterly_report.pdf” or “data_extract.docx”
Analysis and Interpretation of Files
Clarity supports a wide range of file types for analysis and interpretation.
Clarity can search within the following file types:
- Documents: .doc, .docx, .pdf, .pptx, .txt, .md, .tex
- Data and Spreadsheets: .json
- Code: .c, .cpp, .cs, .css, .html, .java, .js, .php, .py, .rb, .sh, .ts
Clarity can interpret files using code in the following file types:
- Documents: .doc, .docx, .pdf, .pptx, .txt, .md, .tex
- Data and Spreadsheets: .csv, .xlsx, .json, .xml
- Code: .c, .cpp, .cs, .css, .html, .java, .js, .php, .py, .rb, .sh, .ts
- Images: .gif, .jpeg, .jpg, .png
- Archives: .tar, .zip