Now that we have trained our model, we can create an index of examples. Here we batch index the first 200 validation examples by passing the x and y to the index along with storing the image in the data parameter. The x_index values are embedded and then added to the index to make them searchable. The y_index and data parameters are optional but allow the user to associate metadata with the embedded example.