search结果根据相似度排序
This commit is contained in:
parent
c29909ad10
commit
3553345f50
|
|
@ -102,4 +102,6 @@ def search_error(query: ErrorQuery):
|
||||||
"matched_layers": db_entry["layers"]
|
"matched_layers": db_entry["layers"]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# 还需要根据相似度排序
|
||||||
|
results.sort(key=lambda x: x["similarity"], reverse=True)
|
||||||
return results
|
return results
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue