Skip to content

Commit

Permalink
update search option
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 28, 2024
1 parent 7fdcd47 commit c276f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/canary/index/trieve/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ defmodule Canary.Index.Trieve.Actual do
search_type = if(rag? or question?(query), do: :hybrid, else: :fulltext)
receive_timeout = if(rag? or question?(query), do: 3_000, else: 1_500)
remove_stop_words = not (rag? or question?(query))
page_size = if(rag?, do: 10, else: 24)
page_size = if(rag?, do: 8, else: 32)
group_size = if(rag?, do: 5, else: 3)

score_threshold =
case search_type do
:fulltext -> 2
:fulltext -> 1
_ -> 0.5
end

Expand Down

0 comments on commit c276f2f

Please sign in to comment.