Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why should cost scale quadratically with number of requests?
 help



In the example above I'm suggesting that `order_context` is more than just the `order.status`. In the former case, this might mean stuff like the user's info, the items ordered, comments that were written by the customer at order time, etc. In all of those cases the actual number of tokens you send to the LLM grows due to factors related to the orders themselves, so the actual cost would be additionally multiplied by the number of requests.

This is in contrast to the match case, where the order statuses are (implied to be) enumerable. One request amounts to one lookup of the enum.


The attention mechanism is quadratic w.r.t the number of tokens you have in the context + the sampled answer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: