How files work inside projects
Files in AI Studio behave differently depending on where you upload them. Understanding this distinction helps you manage your context window, structure projects properly, and effectively use the attached files.
Two types of file attachment
There are two places to attach a file:
- Files uploaded as project context
- Files uploaded inside a separate chat
Each type of file attachment has its own scope and serves a different purpose.
Before uploading, ask one question: Will I need this file in more than one chat?
- If yes — upload it as a project-level context file.
- If no — attach it to the specific message where you need it.
Project-level files (context files)
These are files you upload through the project’s context. They аre summarized as context and used in all project chats and their AI agents.
Use project-level files for context material that applies across multiple tasks:
- Brand guidelines
- Product catalogues
- Tone-of-voice documents
- Style guides
- Technical specifications your team returns to repeatedly
Chat-level files (in-conversation uploads)
These are files you attach to a specific message inside a chat. They are only available within that conversation and are not carried over to other chats in the project.
Use chat-level files for one-off inputs:
- A draft you want reviewed
- A dataset for a single analysis
- An image relevant to one specific task
- A document you are referencing only in that session
Comparison
| Project context files | Chat message files | |
|---|---|---|
| Context to | All chats with or without AI agents in the project | That chat only |
| Persists across chats | Yes | No |
| Use for | Reusable context material | One-time inputs |
| Uploaded via | Project context | Chat message input |
Key takeaways
- Project-level files are available to every chat with or without an AI agent. Chat-level files are available in a single conversation.
- Only add files to the project context if they are genuinely reusable across multiple chats and AI agents.
- When in doubt, attach the file to the message rather than the project.