Update utils.py
Browse files
utils.py
CHANGED
@@ -393,7 +393,7 @@ def rag_chain(llm, prompt, retriever):
|
|
393 |
if (len(relevant_docs)>0):
|
394 |
print("releant docs2......................")
|
395 |
print(relevant_docs)
|
396 |
-
filtered_docs = grade_documents_direct(relevant_docs)
|
397 |
|
398 |
if (len(filtered_docs)>0):
|
399 |
llm_chain = LLMChain(llm = llm, prompt = RAG_CHAIN_PROMPT)
|
|
|
393 |
if (len(relevant_docs)>0):
|
394 |
print("releant docs2......................")
|
395 |
print(relevant_docs)
|
396 |
+
filtered_docs = grade_documents_direct(neu_prompt, relevant_docs)
|
397 |
|
398 |
if (len(filtered_docs)>0):
|
399 |
llm_chain = LLMChain(llm = llm, prompt = RAG_CHAIN_PROMPT)
|