pir_pipeline.utils.dashboard_utils.get_matches

pir_pipeline.utils.dashboard_utils.get_matches(payload: dict, db: SQLAlchemyUtils) list

Return potential matches for a given question or return question_ids within an inconsistent question

Args:

payload (dict): Dictionary containing the review-type and the record to find matches for.

{“review-type”: review-type, “record”: record} db (SQLAlchemyUtils): SQLAlchemyUtils object for database interactions

Returns:

list: [column_names, match, …, match]