forked from AI_team/Philosophy-RAG-demo
Remove unused var
This commit is contained in:
parent
58f9d1f6b5
commit
ce88140ee9
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user