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

Update utils.py

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