Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat(notion): Notion Database extracts Rows content `in row order` and appends `Row Page URL` (#22646)
Aurelius Huangffddabde43d5
diff --git a/api/core/rag/extractor/notion_extractor.py b/api/core/rag/extractor/notion_extractor.pyindex 875626eb34e..17f4d1af2d7 100644--- a/api/core/rag/extractor/notion_extractor.py+++ b/api/core/rag/extractor/notion_extractor.py@@ -1,5 +1,6 @@import jsonimport logging+import operatorfrom typing import Any, Optional, castimport requests@@ -130,13 +131,15 @@ class NotionExtractor(BaseExtractor):data[property_name] = valuerow_dict = {k: v for k, v in data.items() if v}row_content = ""- for key, value in row_dict.items():+ for key, value in sorted(row_dict.items(), key=operator.itemgetter(0)):if isinstance(value, dict):value_dict = {k: v for k, v in value.items() if v}value_content = "".join(f"{k}:{v} " for k, v in value_dict.items())row_content = row_content + f"{key}:{value_content}\n"else:row_content = row_content + f"{key}:{value}\n"+ if "url" in result:+ row_content = row_content + f"Row Page URL:{result.get('url', '')}\n"database_content.append(row_content)has_more = response_data.get("has_more", False)