Skip to content

Commit 0118688

Browse files
improvement on the conditional statement
1 parent 2980f39 commit 0118688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aimon/extensions/react.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def react(self, user_query, user_instructions, context = None, llm_response = No
8585
'react_score': 0.0 ## 0.0 by assumption
8686
}
8787

88-
if llm_response != None:
88+
if llm_response == None:
8989

9090
llm_response = self.llm_app(user_query, user_instructions, reprompted_flag=False)
9191

92-
if context != None:
93-
92+
if context == None:
93+
9494
context = self.context_extractor(user_query, user_instructions, llm_response)
9595

9696
## Generated text for LLM Response, if the user employs the LlamaIndex framework

0 commit comments

Comments
 (0)