code: def _mapping_for_vector_settings(
      self, vector_settings: VectorSettings
  ) -> dict:
      return {
          es_field_for_vector_settings(vector_settings): {
              "type": "knn_vector",
              "dimension": vector_settings.dimensions,
              "method": {
                  "name": "hnsw",
                  "engine": "lucene",  # See https://opensearch.org/blog/Expanding-k-NN-with-Lucene-aNN/
                  "space_type": "cosinesimil",
                  "parameters": {"m": 2, "ef_construction": 4},
              },
          }
      }
  
file_path: argilla/src/argilla/server/search_engine/opensearch.py
imports: import dataclasses
  from typing import Any, Dict, List, Optional
  from uuid import UUID
  from opensearchpy import AsyncOpenSearch, helpers
  from argilla.server.models import VectorSettings
  from argilla.server.search_engine.base 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 OpenSearchEngine obj's underlying member method code with example usage: obj._mapping_for_vector_settings(vector_settings) and returns: dict