nv-ingest error #402
Replies: 1 comment
-
|
This error is coming from Pydantic schema validation inside nv-ingest, not from your PDF or embedding logic: That specific message almost always means:
1. What is actually breakingnv-ingest builds an internal pipeline like: Each step becomes a task object with a “root callable” function. Your error: means: 👉 The second task in the pipeline is missing its handler function 2. Most likely cause in your codeYour chain: Ingestor(...)
.files(...)
.extract(...)
.embed()
.vdb_upload()looks correct, BUT in nv-ingest: ❗
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sample Code
from nv_ingest_client.client import Ingestor
ingestor = (
Ingestor(message_client_hostname="192.168.21.179",message_client_port=30415)
.files("./data/a00142461enw.pdf")
.extract(
extract_text=True,
extract_tables=False,
extract_images=False,
)
.embed()
.vdb_upload()
)
results = ingestor.ingest()
print(results)
Error in nv-ingest
ERROR: Error: 1 validation error for IngestJobSchema
tasks -> 1 -> root
'NoneType' object is not callable (type=type_error)
Traceback (most recent call last):
File "/opt/conda/envs/nv_ingest/lib/python3.10/site-packages/nv_ingest/api/v1/ingest.py", line 138, in submit_job
submitted_job_id = await ingest_service.submit_job(updated_job_spec)
File "/opt/conda/envs/nv_ingest/lib/python3.10/site-packages/nv_ingest/service/impl/ingest/redis_ingest_service.py", line 60, in submit_job
validate_ingest_job(job_spec)
File "/opt/conda/envs/nv_ingest/lib/python3.10/site-packages/nv_ingest/schemas/ingest_job_schema.py", line 204, in validate_ingest_job
return IngestJobSchema(**job_data)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for IngestJobSchema
tasks -> 1 -> root
'NoneType' object is not callable (type=type_error)
Beta Was this translation helpful? Give feedback.
All reactions