Updating retriever alogithm