Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ Examples:
|
|
| 137 |
|
| 138 |
chain = expand_prompt | llm | StrOutputParser()
|
| 139 |
expanded_query = chain.invoke({"query": state['query'], "query_feedback":state["query_feedback"]})
|
| 140 |
-
print("expanded_query", expanded_query) #uncomment this line to see expanded query
|
| 141 |
state["expanded_query"] = expanded_query
|
| 142 |
return state
|
| 143 |
|
|
@@ -338,7 +338,7 @@ Focus on biblical coherence, faith-based reasoning, and alignment with the theme
|
|
| 338 |
# Store response suggestions in a structured format
|
| 339 |
feedback = f"Previous Response: {state['response']}\nSuggestions: {chain.invoke({'query': state['query'], 'response': state['response']})}"
|
| 340 |
#print("feedback: ", feedback) #uncomment this line to see feedback
|
| 341 |
-
print(f"State: {state}")
|
| 342 |
state['feedback'] = feedback
|
| 343 |
return state
|
| 344 |
|
|
|
|
| 137 |
|
| 138 |
chain = expand_prompt | llm | StrOutputParser()
|
| 139 |
expanded_query = chain.invoke({"query": state['query'], "query_feedback":state["query_feedback"]})
|
| 140 |
+
#print("expanded_query", expanded_query) #uncomment this line to see expanded query
|
| 141 |
state["expanded_query"] = expanded_query
|
| 142 |
return state
|
| 143 |
|
|
|
|
| 338 |
# Store response suggestions in a structured format
|
| 339 |
feedback = f"Previous Response: {state['response']}\nSuggestions: {chain.invoke({'query': state['query'], 'response': state['response']})}"
|
| 340 |
#print("feedback: ", feedback) #uncomment this line to see feedback
|
| 341 |
+
#print(f"State: {state}")
|
| 342 |
state['feedback'] = feedback
|
| 343 |
return state
|
| 344 |
|