Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
DeevsDeevs committed Oct 23, 2022
1 parent b1b51a4 commit 53aa2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamlit-app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def get_search_results(search_request: str, additional_info: str, data: pd.DataF
if bm25 != None:
ids, scores = bm25.predict(search_request)
bm25_top10 = goods_df.iloc[ids].head(10) # type: ignore
bm25_top10['kpgz_sim'] = bm25_top10['Код КПГЗ'].apply(lambda x: calc_kpgz(x, kpgz_table))
# bm25_top10['kpgz_sim'] = bm25_top10['Код КПГЗ'].apply(lambda x: calc_kpgz(x, kpgz_table))
bm25_top10['kpgz_sim'] = 0

faiss.normalize_L2(xq)
k = 100
Expand Down

0 comments on commit 53aa2e8

Please sign in to comment.