Understand Working with Files

You can upload files to Agent Hub to provide additional information for a request. For example, you might upload a document that you want Agent Hub to summarize, analyze, or use when answering questions.

When you upload a file, include a prompt that explains what you want Agent Hub to do with the file. You can continue the conversation with follow-up prompts to ask additional questions or refine the result.

The ability to process a file can depend on the file type, file size, and the capabilities available for the conversation.

Supported Files and Limits

Agent Hub supports specific file types and limits for uploaded files. Before uploading a file, make sure that the file meets the supported requirements.

Work with an Uploaded File

An uploaded file provides information that Agent Hub can use when processing your request. Clearly describe the result you want rather than uploading the file without instructions.

For example, Summarize the key findings in this document and identify any recommended actions or Compare the proposed policy with the current policy and summarize the significant differences.

You can use follow-up prompts to continue working with information from an uploaded file within the conversation. For information about writing effective prompts, see Write Effective Prompts.

File Availability in Chat

Uploaded files are associated with the conversation in which you provided them.

Why this matters

Working with files lets you provide information for a request without copying the file's contents into the prompt and lets you save generated output for use outside Agent Hub. Describing what you want Agent Hub to do with an uploaded file can help you get a more useful result.