How can I give my documents access to Model Foundation

I would like to write a macOS application that uses on-device AI (FoundationModels).

I don’t understand how to, practically, give it access to my documents, photos, or contacts and be able to ask it a question like: “Find the document that talks about this topic.”

Do I need to manually retrieve the data and provide it in the form of a prompt? Or is FoundationModels capable of accessing it on its own?

Thanks

How can I give my documents access to Model Foundation
 
 
Q