Whatever message this page gives is out now! Go check it out!

ingestAsync

Last update:
May 18, 2026
Asynchronously ingests documents. Returns a ColdFusion Future immediately, allowing the application to continue executing while document processing occurs in the background.

Syntax

ragService.ingestAsync()

Parameters

This method takes no parameters.

Returns

Returns a Future object. Call .get() on the Future to block until ingestion completes. The resolved value is a Struct with the same shape as the return value of ingest(): totalDocuments, totalSegments, successfulSegments, failedSegments, durationMs, status.

Example

future = ragBot.ingestAsync();

// … do other work …

result = future.get();  // blocks until ingestion completes
writeOutput("Status: #result.status#");

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page