  In this work, we propose a beam training codebook for Reconfigurable
Intelligent Surface (RIS) assisted mmWave uplink communication. Beam training
procedure is important to establish a reliable link between user node and
Access point (AP). A codebook based training procedure reduces the search time
to obtain best possible phase shift by RIS controller to align incident beam at
RIS in the direction of receiving node. We consider a semi passive RIS to
assist RIS controller with a feedback of minimum overhead. It is shown that the
procedure detects a mobile node with high probability in a short interval of
time. Further we use the same codebook at user node to know the desired
direction of communication via RIS.
