Update utils.py
Browse files
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({
|
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---")
|