construct_metadata_filter#

langchain_community.vectorstores.falkordb_vector.construct_metadata_filter(filter: Dict[str, Any] | None = None) β†’ Tuple[str, Dict[str, Any]][source]#

Construct a metadata filter by directly injecting the filter values into the query.

Parameters:
  • filter (Optional[Dict[str, Any]]) – Dictionary

  • condition. (representing the filter)

Returns:

Filter snippet and an empty dictionary (since we don’t need parameters).

Return type:

Tuple[str, Dict[str, Any]]