Spaces:
Running
Running
Update evaluate.py
Browse files- evaluate.py +2 -1
evaluate.py
CHANGED
|
@@ -22,7 +22,8 @@ try:
|
|
| 22 |
from alz_companion.prompts import FAITHFULNESS_JUDGE_PROMPT
|
| 23 |
from langchain_community.vectorstores import FAISS
|
| 24 |
# --- Also move this import inside the try block for consistency ---
|
| 25 |
-
from
|
|
|
|
| 26 |
|
| 27 |
except ImportError:
|
| 28 |
# --- START: FALLBACK DEFINITIONS ---
|
|
|
|
| 22 |
from alz_companion.prompts import FAITHFULNESS_JUDGE_PROMPT
|
| 23 |
from langchain_community.vectorstores import FAISS
|
| 24 |
# --- Also move this import inside the try block for consistency ---
|
| 25 |
+
from langchain_core.documents import Document
|
| 26 |
+
# from langchain.schema import Document
|
| 27 |
|
| 28 |
except ImportError:
|
| 29 |
# --- START: FALLBACK DEFINITIONS ---
|