mirror of
https://github.com/microsoft/graphrag.git
synced 2026-02-07 11:42:33 +08:00
Address comments
This commit is contained in:
parent
f9de673d16
commit
e16710ebd5
@ -120,7 +120,7 @@ class DRIFTSearch(BaseSearch[DRIFTSearchContextBuilder]):
|
||||
i["intermediate_answer"] for i in response if "intermediate_answer" in i
|
||||
]
|
||||
|
||||
if len(intermediate_answers) == 0:
|
||||
if not intermediate_answers:
|
||||
error_msg = "No intermediate answers found in primer response. Ensure that the primer response includes intermediate answers."
|
||||
raise RuntimeError(error_msg)
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ class QueryState:
|
||||
for follow_up in follow_ups:
|
||||
if isinstance(follow_up, str):
|
||||
follow_up = DriftAction(query=follow_up)
|
||||
else:
|
||||
elif not isinstance(follow_up, DriftAction):
|
||||
log.warning(
|
||||
"Follow-up action is not a string, found type: %s", type(follow_up)
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user