def flush_query_data_buffer(self) -> List[QueryData]:
        """
        Clears the query data buffer and returns the data.

        Returns:
            List[QueryData]: The query data.

        """
        query_data_buffer = self._query_data_buffer
        self._query_data_buffer = []
        return query_data_buffer

        Clears the query data buffer and returns the data.

        Returns:
            List[QueryData]: The query data.

        
llama-index-integrations/callbacks/llama-index-callbacks-openinference/llama_index/callbacks/openinference/base.py