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, files may be uploaded during a conversation or directly to a Custom Agent’s knowledge source. The following restrictions apply to files uploaded in either way:
- Total Files: A maximum of 1,000 files can be uploaded to a conversation or Custom Agent’s knowledge store
- 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
How to Upload Files to Clarity
There are four ways to upload files to a conversation in Clarity:
- Upload one or more files by clicking the + icon in the prompt box of a conversation, then selecting Upload Files or Upload Images.
- Drag and Drop files from your desktop to any part of the conversation area.
- Copy (CTRL-C) and Paste (CTRL-V) files from your desktop to the prompt box of a conversation.
- Upload files from OneDrive. Please refer to the Knowledge Base article on how to connect to your Yale OneDrive account in Clarity.
Once uploaded, files will begin processing automatically. A file’s filetype will appear green once fully processed.
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