class_docstr: This handler handles connection and execution of the PostgreSQL with pgvector extension statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","PostgreSQL","with","pgvector","extension","statements","."]
docstr: Translate filter conditions to a dictionary
docstr_tok: ["Translate","filter","conditions","to","a","dictionary"]
code: def _translate_conditions(
      conditions: List[FilterCondition],
  ) -> Union[dict, None]:
      """
      Translate filter conditions to a dictionary
      """
  
      if conditions is None:
          return {}
  
      return {
          condition.column.split(".")[-1]: {
              "op": condition.op.value,
              "value": condition.value,
          }
          for condition in conditions
      }
  
imports: from collections import OrderedDict
  from typing import List, Union
  import pandas
  import psycopg
  from mindsdb_sql import ASTNode, Parameter, Identifier, Update, BinaryOperation
  from pgvector.psycopg import register_vector
  from mindsdb.integrations.handlers.postgres_handler.postgres_handler import PostgresHandler
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, VectorStoreHandler
  from mindsdb.utilities import log
  from mindsdb.utilities.profiler import profiler
label_desc: Use image node_id 3 for calling the PgVectorHandler obj's underlying member method code with example usage: obj._translate_conditions(conditions) and returns: unknown, dict