jenngang commited on
Commit
1d22989
·
verified ·
1 Parent(s): f8c6e22

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -477,7 +477,7 @@ def create_workflow() -> StateGraph:
477
  {
478
  "check_precision": "check_precision", # If well-grounded, proceed to precision check.
479
  "refine_response": "refine_response", # If not, refine the response.
480
- "max_iterations_reached": max_iterations_reached # If max loops reached, exit.
481
  }
482
  )
483
 
@@ -504,7 +504,9 @@ def create_workflow() -> StateGraph:
504
 
505
 
506
  #=========================== Defining the agentic rag tool ====================#
 
507
  WORKFLOW_APP = create_workflow().compile()
 
508
  @tool
509
  def agentic_rag(query: str):
510
  """
 
477
  {
478
  "check_precision": "check_precision", # If well-grounded, proceed to precision check.
479
  "refine_response": "refine_response", # If not, refine the response.
480
+ "max_iterations_reached": "max_iterations_reached" # If max loops reached, exit.
481
  }
482
  )
483
 
 
504
 
505
 
506
  #=========================== Defining the agentic rag tool ====================#
507
+
508
  WORKFLOW_APP = create_workflow().compile()
509
+
510
  @tool
511
  def agentic_rag(query: str):
512
  """