An extension on the Hierachical Recurrent Encoder-Decoder for Generative Context-Aware Query Suggestion, our implementation is in Tensorflow and uses an attention mechanism.
The original paper: A Hierachical Recurrent Encoder-Decoder for Generative Context-Aware Query Suggestion
The original Theano implementation: sordonia/hred-qs
Implementation by: Maartje ter Hoeve, Jörg Sander, Maurits Bleeker and Thijs Scheepers