ranked doc-sim workflow and two-sources ranked workflow stub