refactor5 && add compatibility with similarity source from file/db/web