Skip to content

Commit

Permalink
fix markdown parser (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceceliachenen authored Dec 11, 2024
1 parent 0483daf commit 542036b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pai_rag/integrations/nodeparsers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _build_nodes_from_split(
ref_doc = ref_doc or node
relationships = {NodeRelationship.SOURCE: ref_doc.as_related_node_info()}
image_urls_positions = []
current_section = current_section.replace(" ", "").strip()
current_section = current_section.strip()
raw_section_without_image = current_section
for match in re.finditer(IMAGE_URL_PATTERN, current_section):
alt_text = match.group("alt_text")
Expand Down

0 comments on commit 542036b

Please sign in to comment.