Skip to content

Commit

Permalink
Search penalty settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Lorenz committed Nov 11, 2024
1 parent 5723ef7 commit 649c50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def hybrid_search(query: str, count=MAX_DOCS) -> list[Document]:
vectorstore = vector_search(),
search_index_name = "fulltext_index",
top_k = count,
vector_penalty = 45.0,
vector_penalty = 60.0,
fulltext_penalty = 60.0
)
return retriever.invoke(query)
Expand Down

0 comments on commit 649c50b

Please sign in to comment.