pub fn build_index(clauses: &[Clause]) -> PredicateIndex
Build the predicate index from a list of clauses.