Spaces:
Sleeping
Sleeping
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -141,7 +141,7 @@ def build_or_load_vectorstore(csv_path: str, store_dir: str) -> FAISS:
|
|
| 141 |
df.columns = df.columns.str.strip()
|
| 142 |
|
| 143 |
docs = [
|
| 144 |
-
Document(page_content=str(row["
|
| 145 |
for _, row in df.iterrows()
|
| 146 |
]
|
| 147 |
|
|
|
|
| 141 |
df.columns = df.columns.str.strip()
|
| 142 |
|
| 143 |
docs = [
|
| 144 |
+
Document(page_content=str(row["Answer"]), metadata={"question": str(row["Question"])})
|
| 145 |
for _, row in df.iterrows()
|
| 146 |
]
|
| 147 |
|