Update pipeline.py
Browse files- pipeline.py +0 -1
pipeline.py
CHANGED
@@ -138,7 +138,6 @@ def run_with_chain_context(inputs: Dict[str, Any]) -> Dict[str, str]:
|
|
138 |
user_query = inputs["input"]
|
139 |
chat_history = inputs.get("chat_history", [])
|
140 |
|
141 |
-
# 1) Contextualize the query (ensure it's relevant to the conversation history)
|
142 |
contextualized_query = contextualize_chain.invoke({"user_query": user_query, "chat_history": chat_history})
|
143 |
|
144 |
# 2) Classification (using the contextualized query)
|
|
|
138 |
user_query = inputs["input"]
|
139 |
chat_history = inputs.get("chat_history", [])
|
140 |
|
|
|
141 |
contextualized_query = contextualize_chain.invoke({"user_query": user_query, "chat_history": chat_history})
|
142 |
|
143 |
# 2) Classification (using the contextualized query)
|