It's an offline process. You train Starspace on the user interaction data and then this generates an embedding. Again during search, you will have to use the model to do inference and send the embedding as search to Typesense. This essentially requires to have another service running in addition to Typesense. Hopefully in future we can make this easier and fully built-in.