Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -419,7 +419,7 @@ def create_workflow() -> StateGraph:
|
|
419 |
workflow.add_node("expand_query", expand_query) # Step 1: Expand user query. Complete with the function to expand the query
|
420 |
workflow.add_node("retrieve_context", retrieve_context) # Step 2: Retrieve relevant documents. Complete with the function to retrieve context
|
421 |
workflow.add_node("craft_response", craft_response) # Step 3: Generate a response based on retrieved data. Complete with the function to craft a response
|
422 |
-
workflow.add_node("score_groundedness",
|
423 |
workflow.add_node("refine_response", refine_response) # Step 5: Improve response if it's weakly grounded. Complete with the function to refine the response
|
424 |
workflow.add_node("check_precision", check_precision) # Step 6: Evaluate response precision. Complete with the function to check precision
|
425 |
workflow.add_node("refine_query", refine_query) # Step 7: Improve query if response lacks precision. Complete with the function to refine the query
|
|
|
419 |
workflow.add_node("expand_query", expand_query) # Step 1: Expand user query. Complete with the function to expand the query
|
420 |
workflow.add_node("retrieve_context", retrieve_context) # Step 2: Retrieve relevant documents. Complete with the function to retrieve context
|
421 |
workflow.add_node("craft_response", craft_response) # Step 3: Generate a response based on retrieved data. Complete with the function to craft a response
|
422 |
+
workflow.add_node("score_groundedness", score_groundedness) # Step 4: Evaluate response grounding. Complete with the function to score groundedness
|
423 |
workflow.add_node("refine_response", refine_response) # Step 5: Improve response if it's weakly grounded. Complete with the function to refine the response
|
424 |
workflow.add_node("check_precision", check_precision) # Step 6: Evaluate response precision. Complete with the function to check precision
|
425 |
workflow.add_node("refine_query", refine_query) # Step 7: Improve query if response lacks precision. Complete with the function to refine the query
|