def _fill_doc_ids(results: Dict) -> None:
        """
        check if an id exists, otherwise create a temporary one for easier identification
        during re-ranking
        
        Args:
            results (Dict): _description_
        """

        for result in results[ResultsFields.hits]:
            if ResultsFields.id not in result:
                doc_id = str(uuid.uuid4())
                result[ResultsFields.reranked_id] = doc_id 
            else:
                result[ResultsFields.reranked_id] = result[ResultsFields.id]

        check if an id exists, otherwise create a temporary one for easier identification
        during re-ranking
        
        Args:
            results (Dict): _description_
        
src/marqo/s2_inference/reranking/cross_encoders.py