Skip to content

The agent engineering platform.

FEAT Add some properties to NotionDBLoader (#13358)

竹内謙太3b5e8bacfa6d
diff --git a/libs/langchain/langchain/document_loaders/notiondb.py b/libs/langchain/langchain/document_loaders/notiondb.py
index d7728efcc8..e24d6fe555 100644
--- a/libs/langchain/langchain/document_loaders/notiondb.py
+++ b/libs/langchain/langchain/document_loaders/notiondb.py
@@ -130,6 +130,14 @@ class NotionDBLoader(BaseLoader):
)
elif prop_type == "created_time":
value = prop_data["created_time"] if prop_data["created_time"] else None
+ elif prop_type == "checkbox":
+ value = prop_data["checkbox"]
+ elif prop_type == "email":
+ value = prop_data["email"]
+ elif prop_type == "number":
+ value = prop_data["number"]
+ elif prop_type == "select":
+ value = prop_data["select"]["name"] if prop_data["select"] else None
else:
value = None