Cache the prefix for cheaper and faster prompts
From Wikiprompt, the free prompt encyclopedia
Cache the prefix for cheaper and faster prompts A prompt engineering tip to leverage caching by keeping the prefix static and placing variable content at the end.
Prompt ContentSave
π
Cache the prefix. Keep the start of every prompt identical so it stays cached (about 10x cheaper). One changing character at the top, like a timestamp, kills the whole discount. Put anything that changes at the bottom. Saves 70% cost and lowers latency.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with productivity. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
Talk
0 comments