Subha95 commited on
Commit
9b41328
·
verified ·
1 Parent(s): 3d7beab

Update chatbot_rag.py

Browse files
Files changed (1) hide show
  1. 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)) # clean HF output
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