needs_reprocessing

Function needs_reprocessing 

Source
pub fn needs_reprocessing(
    existing_hash: Option<&Option<String>>,
    new_hash: &str,
) -> ReprocessingDecision
Expand description

Determines if a dataset needs reprocessing based on content hash comparison.

§Arguments

  • existing_hash - The stored content hash for this dataset (None if new dataset)
  • new_hash - The computed content hash from the portal data

§Returns

A ReprocessingDecision indicating whether embedding regeneration is needed and the classification of this sync operation.