Spaces:
Running
Running
add top k button set default to 10
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ w_countries = pn.widgets.MultiSelect(name="Countries", options=country_opts)
|
|
70 |
w_years = pn.widgets.MultiSelect(name="Years", options=year_opts)
|
71 |
w_keyword = pn.widgets.TextInput(name="Keyword Search", placeholder="Search questions or answers with exact string matching")
|
72 |
w_group = pn.widgets.Checkbox(name="Group by Question Text", value=False)
|
73 |
-
w_topk = pn.widgets.Select(name="Top-K (semantic)", options=[5, 10, 20, 50, 100], value=
|
74 |
|
75 |
w_semquery = pn.widgets.TextInput(name="Semantic Query", placeholder="LLM-powered semantic search")
|
76 |
w_search_button = pn.widgets.Button(name="Search", button_type="primary")
|
@@ -187,7 +187,9 @@ sidebar = pn.Column(
|
|
187 |
w_countries, w_years, w_keyword, w_group,
|
188 |
pn.Spacer(height=20),
|
189 |
"## 🧠 Semantic Search",
|
190 |
-
w_semquery,
|
|
|
|
|
191 |
pn.Spacer(height=20),
|
192 |
w_clear_filters,
|
193 |
width=300
|
|
|
70 |
w_years = pn.widgets.MultiSelect(name="Years", options=year_opts)
|
71 |
w_keyword = pn.widgets.TextInput(name="Keyword Search", placeholder="Search questions or answers with exact string matching")
|
72 |
w_group = pn.widgets.Checkbox(name="Group by Question Text", value=False)
|
73 |
+
w_topk = pn.widgets.Select(name="Top-K (semantic)", options=[5, 10, 20, 50, 100], value=10, disabled=True)
|
74 |
|
75 |
w_semquery = pn.widgets.TextInput(name="Semantic Query", placeholder="LLM-powered semantic search")
|
76 |
w_search_button = pn.widgets.Button(name="Search", button_type="primary")
|
|
|
187 |
w_countries, w_years, w_keyword, w_group,
|
188 |
pn.Spacer(height=20),
|
189 |
"## 🧠 Semantic Search",
|
190 |
+
w_semquery,
|
191 |
+
w_topk,
|
192 |
+
w_search_button,
|
193 |
pn.Spacer(height=20),
|
194 |
w_clear_filters,
|
195 |
width=300
|