Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,6 +163,9 @@ if query:
|
|
| 163 |
|
| 164 |
context_relevancy_evaluation_chain = LLMChain(llm=llm_judge, prompt=context_relevancy_checker_prompt, output_key="relevancy_response")
|
| 165 |
|
|
|
|
|
|
|
|
|
|
| 166 |
response_crisis = context_relevancy_evaluation_chain.invoke({"context":context,"retriever_query":query})
|
| 167 |
|
| 168 |
pick_relevant_context_chain = LLMChain(llm=llm_judge, prompt=relevant_prompt, output_key="context_number")
|
|
|
|
| 163 |
|
| 164 |
context_relevancy_evaluation_chain = LLMChain(llm=llm_judge, prompt=context_relevancy_checker_prompt, output_key="relevancy_response")
|
| 165 |
|
| 166 |
+
st.write("🚀 Debugging Expected Keys for `context_relevancy_evaluation_chain`:")
|
| 167 |
+
st.write(context_relevancy_evaluation_chain.input_keys)
|
| 168 |
+
|
| 169 |
response_crisis = context_relevancy_evaluation_chain.invoke({"context":context,"retriever_query":query})
|
| 170 |
|
| 171 |
pick_relevant_context_chain = LLMChain(llm=llm_judge, prompt=relevant_prompt, output_key="context_number")
|