langroid 0.1.208__py3-none-any.whl → 0.1.209__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langroid/parsing/utils.py +2 -1
- {langroid-0.1.208.dist-info → langroid-0.1.209.dist-info}/METADATA +1 -1
- {langroid-0.1.208.dist-info → langroid-0.1.209.dist-info}/RECORD +5 -5
- {langroid-0.1.208.dist-info → langroid-0.1.209.dist-info}/LICENSE +0 -0
- {langroid-0.1.208.dist-info → langroid-0.1.209.dist-info}/WHEEL +0 -0
langroid/parsing/utils.py
CHANGED
@@ -284,7 +284,8 @@ def extract_numbered_segments(s: str, specs: str) -> str:
|
|
284
284
|
|
285
285
|
# Regular expression to identify numbered segments like
|
286
286
|
# <#1#> Hello world! This is me. <#2#> How are you? <#3#> Have a good day.
|
287
|
-
|
287
|
+
# Note we match any character between segment markers, including newlines.
|
288
|
+
segment_pattern = re.compile(r"<#(\d+)#>([\s\S]*?)(?=<#\d+#>|$)")
|
288
289
|
|
289
290
|
# Split the text into paragraphs while preserving their boundaries
|
290
291
|
paragraphs = split_paragraphs(s)
|
@@ -81,7 +81,7 @@ langroid/parsing/table_loader.py,sha256=qNM4obT_0Y4tjrxNBCNUYjKQ9oETCZ7FbolKBTcz
|
|
81
81
|
langroid/parsing/url_loader.py,sha256=x63KPExAdVLLNkwx7c480ZVmS0SM6DaN7IWQu1XVkzM,4151
|
82
82
|
langroid/parsing/url_loader_cookies.py,sha256=Lg4sNpRz9MByWq2mde6T0hKv68VZSV3mtMjNEHuFeSU,2327
|
83
83
|
langroid/parsing/urls.py,sha256=Nv4yCWQLLBEjaiRdaZZVQNBEl_cfK_V6cVuPm91wGtU,7686
|
84
|
-
langroid/parsing/utils.py,sha256=
|
84
|
+
langroid/parsing/utils.py,sha256=OG_QL7XaT8g5YE72MeB---YSyiZYOI7T36ibUwqKYuk,11729
|
85
85
|
langroid/parsing/web_search.py,sha256=XSiSHB4c1Wa8RjWkC4Yh-ac8S7a2WPPYj0n-Ma716RY,4759
|
86
86
|
langroid/prompts/__init__.py,sha256=B0vpJzIJlMR3mFRtoQwyALsFzBHvLp9f92acD8xJA_0,185
|
87
87
|
langroid/prompts/chat-gpt4-system-prompt.md,sha256=Q3uLCJTPQvmUkZN2XDnkBC7M2K3X0F3C3GIQBaFvYvw,5329
|
@@ -115,7 +115,7 @@ langroid/vector_store/meilisearch.py,sha256=d2huA9P-NoYRuAQ9ZeXJmMKr7ry8u90RUSR2
|
|
115
115
|
langroid/vector_store/momento.py,sha256=j6Eo6oIDN2fe7lsBOlCXJn3uvvERHHTFL5QJfeREeOM,10044
|
116
116
|
langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
|
117
117
|
langroid/vector_store/qdrantdb.py,sha256=_egbsP9SWBwmI827EDYSSOqfIQSmwNsmJfFTxrLpWYE,13457
|
118
|
-
langroid-0.1.
|
119
|
-
langroid-0.1.
|
120
|
-
langroid-0.1.
|
121
|
-
langroid-0.1.
|
118
|
+
langroid-0.1.209.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
119
|
+
langroid-0.1.209.dist-info/METADATA,sha256=L8C5OgqafP5his3Ll5OYsDknX8KdRZnwfwe7udpx_i8,46239
|
120
|
+
langroid-0.1.209.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
121
|
+
langroid-0.1.209.dist-info/RECORD,,
|
File without changes
|
File without changes
|