Appendix A Prompt Retrieval A.1 Implementation Details