-
So I am still trying to wrap my head around how to use the InMemoryChatMessageStore in a real world scenario. What I have is
By doing this, every user gets his "own" pipeline including the message store. My assumption would be that you rather instantiate the pipeline once and then run that instance inside the coroutines. But this would require that the InMemoryChatMessageStore is able to distinguish between different coroutines/users that are using it. I was thinking of passing a lambda to the Retriever / Writers that pull the correct store ... is that a feasible approach or am I just missing something with the component? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@wirtsi you need to do your own threading for each user and share the pipeline between threads. We are working on async support that will enable another, perhaps more suitable, model of handling concurrent requests on a pipeline. Async support should be launched soon - this quarter. |
Beta Was this translation helpful? Give feedback.
@wirtsi you need to do your own threading for each user and share the pipeline between threads. We are working on async support that will enable another, perhaps more suitable, model of handling concurrent requests on a pipeline. Async support should be launched soon - this quarter.