clean up faster batch doc retrieval