Remove unused var

This commit is contained in:
Nielson Janné 2025-04-10 15:35:26 +02:00
parent 58f9d1f6b5
commit ce88140ee9

View File

@ -61,7 +61,6 @@ class RetGenLangGraph:
return pdf_sources
for doc in self.last_retrieved_docs:
source_candidate = doc.metadata["source"]
if "source" in doc.metadata and Path(doc.metadata["source"]).suffix.lower() == ".pdf":
source = doc.metadata["source"]
else: