Skip to content

Commit

Permalink
hybrid to default
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Nov 15, 2024
1 parent 9cdc05a commit ee8d9d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions visual-retrieval-colpali/src/frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def ShareButtons():
)


def SearchBox(with_border=False, query_value="", ranking_value="nn+colpali"):
def SearchBox(with_border=False, query_value="", ranking_value="hybrid"):
grid_cls = "grid gap-2 items-center p-3 bg-muted w-full"

if with_border:
Expand Down Expand Up @@ -203,7 +203,7 @@ def SearchBox(with_border=False, query_value="", ranking_value="nn+colpali"):
Span("Ranking by:", cls="text-muted-foreground text-xs font-semibold"),
RadioGroup(
Div(
RadioGroupItem(value="nn+colpali", id="nn+colpali"),
RadioGroupItem(value="colpali", id="colpali"),
Label("ColPali", htmlFor="ColPali"),
cls="flex items-center space-x-2",
),
Expand All @@ -213,7 +213,7 @@ def SearchBox(with_border=False, query_value="", ranking_value="nn+colpali"):
cls="flex items-center space-x-2",
),
Div(
RadioGroupItem(value="bm25+colpali", id="bm25+colpali"),
RadioGroupItem(value="hybrid", id="hybrid"),
Label("Hybrid ColPali + BM25", htmlFor="Hybrid ColPali + BM25"),
cls="flex items-center space-x-2",
),
Expand Down Expand Up @@ -349,7 +349,7 @@ def AboutThisDemo():

def Search(request, search_results=[]):
query_value = request.query_params.get("query", "").strip()
ranking_value = request.query_params.get("ranking", "nn+colpali")
ranking_value = request.query_params.get("ranking", "hybrid")
return Div(
Div(
Div(
Expand Down

0 comments on commit ee8d9d2

Please sign in to comment.