Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions nemoguardrails/library/hf_classifier/flows.co
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ flow hf classifier check retrieval $classifier
$response = await HfClassifierCheckRetrievalAction(classifier=$classifier)

if $response.is_transform
# FIX: Added global declaration to propagate the change to calling context
global $relevant_chunks
$relevant_chunks = $response.transform_text["relevant_chunks"]
2 changes: 2 additions & 0 deletions nemoguardrails/library/hf_classifier/flows.v1.co
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ define subflow hf classifier check retrieval
$response = execute hf_classifier_check_retrieval(classifier=$classifier)

if $response.is_transform
# FIX: Added global declaration to propagate the change to calling context
global $relevant_chunks
Comment thread
ekam-walia marked this conversation as resolved.
Outdated
$relevant_chunks = $response.transform_text["relevant_chunks"]
Loading