Hi there, what are "Hard Prompts"?
- User
Hi there, what are "Hard Prompts"?
Assistant
In the context of AI and language models, "hard prompts" are explicit text instructions or examples that you add to your input to guide the model's behavior. They consist of actual words and sentences written in natural language.
For example, a hard prompt might be:
- "You are a helpful assistant. Please answer the following question:"
- "Translate the following text from English to French:"
- Few-shot examples like "Positive: 'I love this!' Negative: 'This is terrible.' Now classify: [your text]"
This contrasts with "soft prompts," which are continuous, learnable vector embeddings that are optimized during training rather than being human-readable text. Soft prompts are used in certain fine-tuning techniques but aren't directly interpretable as words.
Hard prompts are what most people use when interacting with language models - they're the instructions, context, and examples you write to get the model to perform specific tasks. The advantage is that they're interpretable and easy to modify, though they do use up some of the model's context window.
Is this the context you were asking about, or were you referring to something else?