Skip to content

Commit

Permalink
add defualt top p and n to global search
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinMountain committed Aug 9, 2024
1 parent 2f013df commit a83d2fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webserver/search/globalsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ async def build_global_search_engine(llm: BaseLLM, context_builder=None, callbac

context_builder_params = {
"use_community_summary": False,
# False means using full community reports. True means using community short summaries.
"shuffle_data": True,
"include_community_rank": True,
"min_community_rank": 0,
Expand All @@ -51,12 +50,16 @@ async def build_global_search_engine(llm: BaseLLM, context_builder=None, callbac
map_llm_params = {
"max_tokens": settings.global_search.map_max_tokens,
"temperature": settings.global_search.temperature,
"top_p": settings.global_search.top_p,
"n": settings.global_search.n,
"response_format": {"type": "json_object"},
}

reduce_llm_params = {
"max_tokens": settings.global_search.reduce_max_tokens,
"temperature": settings.global_search.temperature,
"top_p": settings.global_search.top_p,
"n": settings.global_search.n,
}

search_engine = GlobalSearch(
Expand Down

0 comments on commit a83d2fb

Please sign in to comment.