Spaces:
Runtime error
Runtime error
Update app_final.py
Browse files- app_final.py +1 -1
app_final.py
CHANGED
@@ -901,7 +901,7 @@ else:
|
|
901 |
store_gen = st.session_state.store_gen
|
902 |
|
903 |
def topk(searchKW):
|
904 |
-
search_r = st.session_state.
|
905 |
return [x.page_content for x in search_r]
|
906 |
|
907 |
if 'searchbtn_clicked' not in st.session_state:
|
|
|
901 |
store_gen = st.session_state.store_gen
|
902 |
|
903 |
def topk(searchKW):
|
904 |
+
search_r = st.session_state.store_gen.similarity_search(searchKW, k=5)
|
905 |
return [x.page_content for x in search_r]
|
906 |
|
907 |
if 'searchbtn_clicked' not in st.session_state:
|