Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions graphrag/query/structured_search/drift_search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async def _reduce_response(
llm_calls: dict[str, int],
prompt_tokens: dict[str, int],
output_tokens: dict[str, int],
**llm_kwargs,
model_params: dict[str, Any],
) -> str:
"""Reduce the response to a single comprehensive response.

Expand All @@ -356,7 +356,7 @@ async def _reduce_response(
The responses to reduce.
query : str
The original query.
llm_kwargs : dict[str, Any]
model_params : dict[str, Any]
Additional keyword arguments to pass to the LLM.

Returns
Expand Down Expand Up @@ -386,7 +386,7 @@ async def _reduce_response(
model_response = await self.model.achat(
prompt=query,
history=search_messages,
model_parameters=llm_kwargs,
model_parameters=model_params,
)

reduced_response = model_response.output.content
Expand All @@ -413,6 +413,8 @@ async def _reduce_response_streaming(
The responses to reduce.
query : str
The original query.
model_params : dict[str, Any]
Additional keyword arguments to pass to the LLM.

Returns
-------
Expand Down