alexkueck commited on
Commit
f37a688
1 Parent(s): 3ac31e7

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -332,7 +332,7 @@ def grade_documents_direct(prompt, documents):
332
  filtered_docs = []
333
  for d in documents:
334
  print(d.page_content)
335
- score = chain.invoke({"question": prompt, "context": d.page_content})
336
  grade = score[0].binary_score
337
  if grade == "ja":
338
  print("---Bewertung: Dokument ist relevant---")
 
332
  filtered_docs = []
333
  for d in documents:
334
  print(d.page_content)
335
+ score = chain.invoke({ "context": d.page_content})
336
  grade = score[0].binary_score
337
  if grade == "ja":
338
  print("---Bewertung: Dokument ist relevant---")