[doc/index] Compact the new knn query pictures. Add knn code snippet.