whoami
whoami2y ago

Can I do langchain streaming in convex?

Haven't tried that yet but wanted to know if that's possible with convex actions
2 Replies
ian
ian2y ago
You can stream within an action, but the input and output of an action is a single unit. If you’re doing it all within an httpAction you could stream in but I think we resolve all promises before returning the http Response. However, if you write from an action to a mutation multiple times during an action and a client is subscribed via a query, the client will be seeing the updating values before the action finishes. Does that make sense?
whoami
whoamiOP2y ago
ok thanks that makes sense

Did you find this page helpful?