Prompt engineering for text generation: Difference between revisions

no edit summary
No edit summary
Line 134: Line 134:
===Tips for Example Selection===
===Tips for Example Selection===
====Semantically Similar Examples====
====Semantically Similar Examples====
Liu et al. (2021) suggested choosing examples that are semantically similar to the test example by employing [[k-nearest neighbors]] (KNN) clustering in the [[embedding space]].<ref name="”112”">Liu et al., 2021 What Makes Good In-Context Examples for GPT-3? https://arxiv.org/abs/2101.06804</ref>
Liu et al. (2021) suggested choosing examples that are semantically similar to the test example by employing [[k-nearest neighbors]] (KNN) clustering in the [[embedding space]].<ref name="”112”">Liu et al. (2021) What Makes Good In-Context Examples for GPT-3? https://arxiv.org/abs/2101.06804</ref>


====Diverse and Representative Examples====
====Diverse and Representative Examples====
370

edits