annikwag commited on
Commit
eac610a
·
verified ·
1 Parent(s): f256eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -105,7 +105,7 @@ with col3:
105
 
106
  # Checkbox to control whether to show only exact matches
107
  show_exact_matches = st.checkbox("Show only exact matches", value=False)
108
- button = st.button("Search")
109
 
110
  def filter_results(results, country_filter, region_filter, end_year_range):
111
  filtered = []
@@ -141,7 +141,7 @@ def filter_results(results, country_filter, region_filter, end_year_range):
141
 
142
  if button:
143
  # 1) Use a bigger limit so we get more than 10 results
144
- results = hybrid_search(client, var, collection_name, limit=3000) # e.g., 100 or 200
145
 
146
  # results is a tuple: (semantic_results, lexical_results)
147
  semantic_all = results[0]
 
105
 
106
  # Checkbox to control whether to show only exact matches
107
  show_exact_matches = st.checkbox("Show only exact matches", value=False)
108
+ button = st.button("Refresh Search")
109
 
110
  def filter_results(results, country_filter, region_filter, end_year_range):
111
  filtered = []
 
141
 
142
  if button:
143
  # 1) Use a bigger limit so we get more than 10 results
144
+ results = hybrid_search(client, var, collection_name, limit=500) # e.g., 100 or 200
145
 
146
  # results is a tuple: (semantic_results, lexical_results)
147
  semantic_all = results[0]