[app] Add limit to number of documents and size limit