Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +2 -2
chatbot_rag.py
CHANGED
|
@@ -144,12 +144,12 @@ def build_qa():
|
|
| 144 |
"question": RunnablePassthrough(),
|
| 145 |
}
|
| 146 |
| prompt
|
| 147 |
-
| (lambda x: str(x)) # convert PromptTemplate value to str
|
| 148 |
| llm
|
| 149 |
-
| (lambda x: hf_to_str(x))
|
| 150 |
| StrOutputParser()
|
| 151 |
)
|
| 152 |
|
|
|
|
| 153 |
print("✅ QA pipeline ready.")
|
| 154 |
return rag_chain
|
| 155 |
|
|
|
|
| 144 |
"question": RunnablePassthrough(),
|
| 145 |
}
|
| 146 |
| prompt
|
|
|
|
| 147 |
| llm
|
| 148 |
+
| (lambda x: hf_to_str(x))
|
| 149 |
| StrOutputParser()
|
| 150 |
)
|
| 151 |
|
| 152 |
+
|
| 153 |
print("✅ QA pipeline ready.")
|
| 154 |
return rag_chain
|
| 155 |
|