add file to retrieve top N closest patents