nv-ingest-api 2025.8.5.dev20250805__py3-none-any.whl → 2025.8.7.dev20250807__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.

Potentially problematic release.


This version of nv-ingest-api might be problematic. Click here for more details.

@@ -10,12 +10,8 @@ from typing import Any, Dict, Tuple, Optional, Iterable, List
10
10
  import pandas as pd
11
11
  from openai import OpenAI
12
12
 
13
- from nv_ingest_api.internal.enums.common import ContentTypeEnum, StatusEnum, TaskTypeEnum
14
- from nv_ingest_api.internal.schemas.meta.metadata_schema import (
15
- InfoMessageMetadataSchema,
16
- )
13
+ from nv_ingest_api.internal.enums.common import ContentTypeEnum
17
14
  from nv_ingest_api.internal.schemas.transform.transform_text_embedding_schema import TextEmbeddingSchema
18
- from nv_ingest_api.util.schema.schema_validator import validate_schema
19
15
 
20
16
  logger = logging.getLogger(__name__)
21
17
 
@@ -97,18 +93,14 @@ def _make_async_request(
97
93
  response["info_msg"] = None
98
94
 
99
95
  except Exception as err:
100
- info_msg = {
101
- "task": TaskTypeEnum.EMBED.value,
102
- "status": StatusEnum.ERROR.value,
103
- "message": f"Embedding error: {err}",
104
- "filter": filter_errors,
105
- }
106
- validated_info_msg = validate_schema(info_msg, InfoMessageMetadataSchema).model_dump()
107
-
108
- response["embedding"] = [None] * len(prompts)
109
- response["info_msg"] = validated_info_msg
96
+ # Truncate error message to prevent memory blowup from large text content
97
+ err_str = str(err)
98
+ if len(err_str) > 500:
99
+ truncated_err = err_str[:200] + "... [truncated to prevent memory blowup] ..." + err_str[-100:]
100
+ else:
101
+ truncated_err = err_str
110
102
 
111
- raise RuntimeError(f"Embedding error occurred. Info message: {validated_info_msg}") from err
103
+ raise RuntimeError(f"Embedding error occurred: {truncated_err}") from err
112
104
 
113
105
  return response
114
106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nv-ingest-api
3
- Version: 2025.8.5.dev20250805
3
+ Version: 2025.8.7.dev20250807
4
4
  Summary: Python module with core document ingestion functions.
5
5
  Author-email: Jeremy Dyer <jdyer@nvidia.com>
6
6
  License: Apache License
@@ -99,7 +99,7 @@ nv_ingest_api/internal/store/embed_text_upload.py,sha256=maxb4FPsBvWgvlrjAPEBlRZ
99
99
  nv_ingest_api/internal/store/image_upload.py,sha256=GNlY4k3pfcHv3lzXxkbmGLeHFsf9PI25bkBn6Xn9h3I,9654
100
100
  nv_ingest_api/internal/transform/__init__.py,sha256=wQSlVx3T14ZgQAt-EPzEczQusXVW0W8yynnUaFFGE3s,143
101
101
  nv_ingest_api/internal/transform/caption_image.py,sha256=0ILCG2F8ESqKtZiPUM-6F1BHUflFZ76Dzi2GNzkE-lU,8517
102
- nv_ingest_api/internal/transform/embed_text.py,sha256=pVM9gULOrVf3IJrpFDZH0X7lWQbr4BTbrLG3LXp_G7s,20095
102
+ nv_ingest_api/internal/transform/embed_text.py,sha256=z9P5AtUo_e7s5qLlyhcUISQ1HUhBD93bdmEcXls_Fwc,19768
103
103
  nv_ingest_api/internal/transform/split_text.py,sha256=LAtInGVuydH43UwjNMQWFVC1A6NdhXP_dZup2xX4qEo,7745
104
104
  nv_ingest_api/util/__init__.py,sha256=wQSlVx3T14ZgQAt-EPzEczQusXVW0W8yynnUaFFGE3s,143
105
105
  nv_ingest_api/util/control_message/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -153,8 +153,8 @@ nv_ingest_api/util/service_clients/rest/rest_client.py,sha256=dZ-jrk7IK7oNtHoXFS
153
153
  nv_ingest_api/util/string_processing/__init__.py,sha256=mkwHthyS-IILcLcL1tJYeF6mpqX3pxEw5aUzDGjTSeU,1411
154
154
  nv_ingest_api/util/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
155
  nv_ingest_api/util/system/hardware_info.py,sha256=ORZeKpH9kSGU_vuPhyBwkIiMyCViKUX2CP__MCjrfbU,19463
156
- nv_ingest_api-2025.8.5.dev20250805.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
157
- nv_ingest_api-2025.8.5.dev20250805.dist-info/METADATA,sha256=xxWjVI5y6aDvdRROmn4Vk5uS3bDgARqCf6of5C88JM4,13946
158
- nv_ingest_api-2025.8.5.dev20250805.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
159
- nv_ingest_api-2025.8.5.dev20250805.dist-info/top_level.txt,sha256=abjYMlTJGoG5tOdfIB-IWvLyKclw6HLaRSc8MxX4X6I,14
160
- nv_ingest_api-2025.8.5.dev20250805.dist-info/RECORD,,
156
+ nv_ingest_api-2025.8.7.dev20250807.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
157
+ nv_ingest_api-2025.8.7.dev20250807.dist-info/METADATA,sha256=FblgnCiHMKBQlzG7aWQQmyf_QvkPNowvJ2nOcoqiX7M,13946
158
+ nv_ingest_api-2025.8.7.dev20250807.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
159
+ nv_ingest_api-2025.8.7.dev20250807.dist-info/top_level.txt,sha256=abjYMlTJGoG5tOdfIB-IWvLyKclw6HLaRSc8MxX4X6I,14
160
+ nv_ingest_api-2025.8.7.dev20250807.dist-info/RECORD,,