class_docstr: Configuration for VectorStoreHandler.
class_docstr_tok: ["Configuration","for","VectorStoreHandler","."]
docstr: Check if config is valid.
docstr_tok: ["Check","if","config","is","valid","."]
code: def check_config(cls, values):
      """Check if config is valid."""
  
      vector_store = values.get("vector_store")
      host = values.get("host")
      port = values.get("port")
      persist_directory = values.get("persist_directory")
  
      if bool(port) != bool(host) or (host and persist_directory):
          raise ValueError(
              f"For {vector_store} handler - host and port must be provided together. "
              f"Additionally, if host and port are provided, persist_directory should not be provided."
          )
  
      if persist_directory and (host or port):
          raise ValueError(
              f"For {vector_store} handler - if persistence_folder is provided, "
              f"host, port should not be provided."
          )
  
      return values
  
imports: import difflib
  from pydantic import BaseModel, Extra, root_validator
label_desc: Use image node_id 2 for calling the ChromaHandlerConfig obj's underlying member method code with example usage: obj.check_config(cls, values) and returns: values