can’t get answers to questions you don’t ask! Jev first, figure it out later.
fresh best practices drop from @allietheicon
can’t get answers to questions you don’t ask! Jev first, figure it out later.
fresh best practices drop from @allietheicon
One of the most important Jev patterns to learn is what we sometimes call "speculative questions". In the majority of cases, it's faster and even often cheaper to batch questions together in to a single call, *even when you don't yet know if you'll need the answers!* Why? Many reasons: Speed! Oftentimes you can accomplish the entire task in a single call, instead of multiple sequential calls in different logic paths. Cost! You only pay for tokens in state once per call, so batching questions also avoids paying for the state multiple times. When your state is large, batching questions often saves cost compared to sequential calls that duplicate state. Questions never affect the output of other questions in the same call, so accuracy will not suffer.
TypeSafe AI · x.comPublished · added here
Original title: can’t get answers to questions you don’t ask! Jev first, figure it out later.