code: def __init__(self, index_name: str, **kwargs) -> None:
      try_to_import_pinecone_client()
      global _pinecone_init_done
      # pinecone only allows index names with lower alpha-numeric characters and '-'
      self._index_name = index_name.strip().lower()
  
      # Get the API key.
      self._api_key = kwargs.get("PINECONE_API_KEY")
  
      if not self._api_key:
          self._api_key = os.environ.get("PINECONE_API_KEY")
  
      assert (
          self._api_key
      ), "Please set your `PINECONE_API_KEY` using set command or environment variable (PINECONE_KEY). It can be found at Pinecone Dashboard > API Keys > Value"
  
      # Get the environment name.
      self._environment = kwargs.get("PINECONE_ENV")
      if not self._environment:
          self._environment = os.environ.get("PINECONE_ENV")
  
      assert (
          self._environment
      ), "Please set your `PINECONE_ENV` or environment variable (PINECONE_ENV). It can be found Pinecone Dashboard > API Keys > Environment."
  
      if not _pinecone_init_done:
          # Initialize pinecone.
          import pinecone
  
          pinecone.init(
              api_key=self._api_key, environment=self._environment
          )
          _pinecone_init_done = True
      self._client = None
  
file_path: evadb/evadb/third_party/vector_stores/pinecone.py
imports: import os
  from typing import List
  from evadb.third_party.vector_stores.types import FeaturePayload, VectorIndexQuery, VectorIndexQueryResult, VectorStore
  from evadb.utils.generic_utils import try_to_import_pinecone_client
  from evadb.utils.logging_manager import logger
label_desc: Use image node_id 1 to create a new PineconeVectorStore object from inherited base classes: VectorStore with example: obj = PineconeVectorStore(index_name)