Troubleshoot Prompt Composer

Prompt Composer displays error messages for a range of issues. You can troubleshoot these error messages using the following information.

Model access and timeout errors

Error message: No LLM Snap found in the pipeline downstream. Please add an LLM Snap to the pipeline.

Try the following actions to fix this issue:

  1. Make sure that an LLM model is selected in the LLM-calling Snap downstream from the Prompt Generator Snap.
  2. Verify that the Snap account for the LLM is valid.
  3. If no LLM-calling Snap is downstream, add one.

Prompt Assistant timeouts or failures

Error message: Assistant timed out. Please try again.

Try the following actions to fix this issue:

  1. Check the LLM-calling Snap configuration.
  2. Validate the pipeline.
  3. Open Prompt Composer and click Update.

Data preview problems

Error message: No data found. Please check the input data and try again.

Try the following actions to fix this issue:

  1. Point and click the JSON Generator Snap to open the Settings dialog.
  2. Click Open Editor.
  3. In the JSON editor, check the formatting of the data and fix any issues.
  4. If the JSON data exceeds 10MB, consider breaking up the data sample into smaller sizes.

Pipeline design errors

Error message: The downstream LLM-calling Snap failed to process the data. Please check the LLM Snap and try again.

Try the following actions to fix this issue:

  1. Point and click the LLM-calling Snap to open the Settings.
  2. Verify that the Prompt* field value is $prompt.

Preview data failures

Error message: No data found. Please check the input data and try again.

Try the following actions to fix this issue:

  1. Point and click the JSON Generator Snap to open the Settings dialog.
  2. Click Open Editor.
  3. Verify that properly formatted JSON is present.

LLM account authorization issues

Error message: No account

Try the following actions to fix this issue:

  1. Point and click the LLM-calling Snap to open the Settings dialog.
  2. Verify that the LLM account is valid and the Snap Account is configured correctly.

Displays when a downstream LLM-calling Snap is on the canvas but not connected to the Prompt Generator Snap.

Error message: LLM Snap not connected

Try the following actions to fix this issue:

  1. Close Prompt Composer and connect the LLM-calling Snap.
  2. Make sure the pipeline validates and open Prompt Composer.