4 ms·
If a user is waiting on the response, you basically have to stream the result instead of waiting on the entire completion.
by kristjansson 3y ago
If a user is waiting on the response, you basically have to stream the result instead of waiting on the entire completion.
- joelm 3y agoYea, that is probably a better solution. Not an easy one to refactor into at the moment though.
- ukuina 3y agoThere's no real benefit to streaming if you are planning to use the LLM output downstream (say, in a SQL query). LLM latency is a major annoyance right now, whether locally-hosted or cloud-based.