It searches reddit for whatever the user queries. Reddit returns up to 100 threads. I then choose a thread and take the top comment.
The neural network predicts which thread is most likely to produce a satisfying answer. The main features are number of n-gram matches with the question, the score, the number of comments, and some other metadata.
It's far from optimal but it does improve it a bit.