alexkueck commited on
Commit
b7366ef
1 Parent(s): e03d251

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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)