We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b6f4d commit da82132Copy full SHA for da82132
libs/langchain/langchain/document_loaders/obsidian.py
@@ -127,7 +127,9 @@ def load(self) -> List[Document]:
127
}
128
129
if tags or front_matter.get("tags"):
130
- metadata["tags"] = ",".join(tags | set(front_matter.get("tags", [])))
+ metadata["tags"] = ",".join(
131
+ tags | set(front_matter.get("tags", []) or [])
132
+ )
133
134
docs.append(Document(page_content=text, metadata=metadata))
135
0 commit comments