DocRouter LLM icon

DocRouter LLM

Run and manage LLM analysis on documents in DocRouter.ai

Get

AI-generated

Summary

Retrieve the LLM analysis result for a specific document and prompt revision from DocRouter.ai, optionally falling back to the most recent available prompt revision if the specified one is not found.

Inputs

  • Document ID (required) — The unique identifier of the document to retrieve the LLM result for.
  • Prompt Revision ID — The revision ID of the prompt used to generate the LLM result, defaults to 'default'.
  • Fallback — If set to true, attempt to retrieve the most recent available prompt revision result if the specified prompt revision result is not found.

Output shape

a JSON object containing the LLM result data for the given document and prompt revision

The operation returns the LLM result as JSON; if the result for the specified prompt revision ID is unavailable and fallback is enabled, it returns the most recent result instead. Errors are thrown if the document ID is invalid or result retrieval fails.

Examples

Example 1: Retrieve the latest LLM result for a document using the default prompt revision

Provide Document ID; Prompt Revision ID left as 'default'; Fallback option false or not set.

Links

Discussion