Detailed documentation of index_gateway

Hi, can anyone share me the detailed documentation of how index_gateway works in Loki and what are its benefits?