AI and LLMs · Middle · Question 33 of 75

Which technique lowers cost for many requests with the same long instructions?

Show the answer

Correct answer: Prompt caching of the shared prefix

Explanation

Put stable content (instructions, documents) first and variable content last so the prefix can be cached.

Further reading

Problem with a question

AI and LLMs · Middle · question 33

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz