[source, ruby]
----
response = client.reindex(
  wait_for_completion: false,
  body: {
    source: {
      index: 'test-data',
      size: 50
    },
    dest: {
      index: 'openai-embeddings',
      pipeline: 'openai_embeddings'
    }
  }
)
puts response
----
