Dealing with files, remembering context and siloing the data

Hello,

Does OpenAI accept either sending a link to a file or uploading a file using its API and extracting information from that file based on questions that a user asks without mixing it with other data uploaded by the user (data siloing)? Can it remember context from a file or does it need to have the link either put as part of the prompt or uploaded every time? For example, chatpdf lets you upload the file and it remembers the context and can silo the data.

Thanks