Literal AI icon

Literal AI

Use the Literal AI API

Overview

This node integrates with the Literal AI API to manage "scores" associated with AI steps or evaluations. Specifically, the Delete Score operation removes a score identified by its unique ID from the Literal AI system.

Common scenarios for this node include cleaning up outdated or incorrect evaluation scores, managing data hygiene in AI experiment workflows, or programmatically removing scores that are no longer relevant.

For example, after an AI model retraining, you might want to delete obsolete scores linked to previous runs to keep your dataset clean.

Properties

Name Meaning
Score ID The unique identifier of the score to delete

Output

The node outputs a JSON object under the json field containing the response from the Literal AI API after attempting to delete the score. This typically includes confirmation of deletion or details about the deleted score.

No binary data output is produced by this operation.

Example output structure:

{
  "content": {
    // API response confirming deletion or related info
  }
}

Dependencies

  • Requires an active connection to the Literal AI API.
  • Must be configured with a valid API key credential for authentication.
  • The node uses the official Literal AI client library (@literalai/client) to interact with the API.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Score ID will likely result in an error from the API indicating the score could not be found.
    • Missing or invalid API credentials will cause authentication failures.
    • Network connectivity problems can prevent successful API calls.
  • Error messages and resolutions:

    • "Score not found": Verify the Score ID is correct and exists in the Literal AI system.
    • "Authentication failed": Check that the API key credential is correctly set up and has necessary permissions.
    • Timeout or network errors: Ensure stable internet connection and that the Literal AI service is reachable.

Links and References

Discussion