[source, ruby]
----
response = client.indices.create(
  index: 'openai-embeddings',
  body: {
    mappings: {
      properties: {
        content_embedding: {
          type: 'dense_vector',
          dims: 1536,
          element_type: 'float',
          similarity: 'dot_product'
        },
        content: {
          type: 'text'
        }
      }
    }
  }
)
puts response
----
