figuring out the detect_relevance workflow