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
fix: code block segmentation problem of markdown document (#6465)
灰灰5e4ac11df32f
diff --git a/api/core/rag/extractor/markdown_extractor.py b/api/core/rag/extractor/markdown_extractor.pyindex faa1e64057b..b24cf2e1707 100644--- a/api/core/rag/extractor/markdown_extractor.py+++ b/api/core/rag/extractor/markdown_extractor.py@@ -54,8 +54,16 @@ class MarkdownExtractor(BaseExtractor):current_header = Nonecurrent_text = ""+ code_block_flag = Falsefor line in lines:+ if line.startswith("```"):+ code_block_flag = not code_block_flag+ current_text += line + "\n"+ continue+ if code_block_flag:+ current_text += line + "\n"+ continueheader_match = re.match(r"^#+\s", line)if header_match:if current_header is not None: