Unverified50% confidenceSolutionExact time
In in-context learning, retrieving the examples closest to the current input based on sentence-embedding cosine similarity helps the LLM capture task boundaries and label semantics better than randomly selecting examples.
1
Sources
50%
Confidence
Long-term
Relevance
11/9/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedProviding in-context learning examples at inference time can substantially mitigate context confusion.77% similarVerifiedThe effectiveness of prompt engineering is rooted in the large language model's In-Context Learning capability, which enables task switching without modifying model weights.76% similarUnverifiedIntent-based prompting and in-context learning complement each other: the model infers the task pattern from the examples and background provided in the prompt, while the intent description provides a higher-level semantic anchor for this inference.74% similarUnverifiedEmbedding model fine-tuning usually adopts a contrastive learning framework: semantically similar sample pairs serve as positive examples and unrelated ones as negative examples, optimizing retrieval ranking ability by pulling positive examples closer and pushing negative examples farther apart.72% similarUnverifiedSentence-BERT is a pretrained model that maps sentences to dense vectors; it is fine-tuned with a siamese network structure so that semantically similar sentences are closer together in vector space.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1150000API
curl https://kongchang.com/api/v1/knowledge/claims/1150000MCP
get_claim(id=1150000)