[source, ruby]
----
response = client.search(
  index: 'hugging-face-embeddings',
  body: {
    knn: {
      field: 'content_embedding',
      query_vector_builder: {
        text_embedding: {
          model_id: 'hugging_face_embeddings',
          model_text: "What's margin of error?"
        }
      },
      k: 10,
      num_candidates: 100
    },
    _source: [
      'id',
      'content'
    ]
  }
)
puts response
----
