code: def _mapping_for_vector_settings(
      self, vector_settings: VectorSettings
  ) -> dict:
      return {
          es_field_for_vector_settings(vector_settings): {
              "type": "dense_vector",
              "dims": vector_settings.dimensions,
              "index": True,
              # can similarity property also be part of config @frascuchon ?
              # relates vector search similarity metric
              # "similarity": "l2_norm",  ## default value regarding the knn best practices es documentation
              "similarity": "cosine",
          }
      }
  
file_path: argilla/src/argilla/server/search_engine/elasticsearch.py
imports: import dataclasses
  from typing import Any, Dict, List, Optional
  from uuid import UUID
  from elasticsearch8 import AsyncElasticsearch, helpers
  from argilla.server.models import VectorSettings
  from argilla.server.search_engine import SearchEngine
  from argilla.server.search_engine.commons import BaseElasticAndOpenSearchEngine, es_bool_query, es_field_for_vector_settings, es_ids_query
  from argilla.server.settings import settings
label_desc: Use image node_id 3 for calling the ElasticSearchEngine obj's underlying member method code with example usage: obj._mapping_for_vector_settings(vector_settings) and returns: dict