Short fragments of rna that are used to alter the function of target RNAs or DNAs to which they hybridize.