Hello, I’m trying to build a custom response selector component. To my knowledge there do not exist any tutorials on that, so at the moment I am trying to figure out how the rasa response selector works during prediction time. I have watched the master class but it does not go into coding details.
My question is how can I access all response candidates in the process method of my component to find the most similar one compared to the usser utterance ( = message object)?
The model I am trying to implement is a baseline and therefore quite simple: It just calculates the cosine similarity between the mean token embedding vector of the user utterance and a response candidate.
PS.: Of course I have been looking into the Rasa github repo but I have not figured out how everything works so far.