nv_ingest.api.v1 package#
Submodules#
nv_ingest.api.v1.health module#
nv_ingest.api.v1.ingest module#
- async nv_ingest.api.v1.ingest.convert_pdf(
- ingest_service: Annotated[IngestServiceMeta, Depends(_get_ingest_service)],
- files: List[UploadFile] = File(PydanticUndefined),
- job_id: str = Form(PydanticUndefined),
- extract_text: bool = Form(True),
- extract_images: bool = Form(True),
- extract_tables: bool = Form(True),
- extract_charts: bool = Form(False),
- extract_infographics: bool = Form(False),
- async nv_ingest.api.v1.ingest.fetch_job(
- job_id: str,
- ingest_service: Annotated[IngestServiceMeta, Depends(_get_ingest_service)],
Fetches job result, checking job state before attempting data retrieval.
Distinguishes non-existent jobs (404) from expired results (410).
- async nv_ingest.api.v1.ingest.get_status(
- ingest_service: Annotated[IngestServiceMeta, Depends(_get_ingest_service)],
- job_id: str,
- async nv_ingest.api.v1.ingest.submit_job(
- request: Request,
- response: Response,
- job_spec: MessageWrapper,
- ingest_service: Annotated[IngestServiceMeta, Depends(_get_ingest_service)],
- async nv_ingest.api.v1.ingest.submit_job_curl_friendly(
- ingest_service: Annotated[IngestServiceMeta, Depends(_get_ingest_service)],
- file: UploadFile = File(PydanticUndefined),
A multipart/form-data friendly Job submission endpoint that makes interacting with the nv-ingest service through tools like Curl easier.