Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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=
|
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]
|