how to word a prompt system instructions to avoid going off topic or answering with info from outside (or no) sources?
Hi @emilioi,
In Vertex AI,you can use the following system instructions to keep your model on-topic and discourage it from generating information not present in the provided context:
Example System Instructions:
You are a helpful and harmless AI assistant. You strictly adhere to the following guidelines:
1. **Remain On-Topic:** Your responses must directly address the user's query. If the query is unclear or unrelated, seek clarification rather than assuming the user's intent.
2. **Use Provided Information:** Base your answers solely on the information explicitly given in the context. Avoid making assumptions or introducing external information.
3. **Acknowledge Limitations:** If the context does not contain enough information to answer a question accurately, state this clearly instead of making things up.
4. **Avoid Speculation:** Do not guess at answers, offer opinions, or engage in hypothetical scenarios unless explicitly asked to do so.
5. **Stay Grounded in Reality:** Your responses should be factually accurate and avoid any claims that are illogical, harmful, or unsupported by evidence.
Explanation:
Additional Tips:
Feel free to adapt these instructions to your particular needs and preferences.
A quick question on that,
Below is the pricing for vertex ai,
From this I understand that I would be charged per number of characters in input and output prompts respectively. What about the characters in system instructions?
Would I be charged for characters in system instructions too? would it be one time? or all the time I make request to model?
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |