Update utils.py
Browse files
utils.py
CHANGED
|
@@ -331,7 +331,7 @@ def grade_documents_direct(prompt, documents):
|
|
| 331 |
|
| 332 |
for d in documents:
|
| 333 |
llm_chain = LLMChain(llm = model, prompt = grade_prompt)
|
| 334 |
-
score = llm_chain.run({"question": prompt, "context": d.page_content}
|
| 335 |
print("hier1..................................")
|
| 336 |
|
| 337 |
if not score == "nein":
|
|
|
|
| 331 |
|
| 332 |
for d in documents:
|
| 333 |
llm_chain = LLMChain(llm = model, prompt = grade_prompt)
|
| 334 |
+
score = llm_chain.run({"question": prompt, "context": d.page_content})
|
| 335 |
print("hier1..................................")
|
| 336 |
|
| 337 |
if not score == "nein":
|