Dataiku DSS icon

Dataiku DSS

Use the Dataiku DSS API

Actions364

Overview

This node integrates with the Dataiku DSS API, enabling users to perform a wide range of operations on Dataiku DSS resources. Specifically for the LLM Mesh resource and the Perform Completions on a LLM operation, it allows performing text completions using large language models (LLMs) available within a Dataiku project.

Typical use cases include:

  • Generating natural language completions or responses based on prompts.
  • Automating content creation or augmentation workflows.
  • Integrating advanced AI-driven text generation into data pipelines or applications managed in Dataiku.

For example, you might use this node to send a prompt to an LLM hosted in your Dataiku project and receive generated text completions that can be further processed or stored.

Properties

Name Meaning
Project Key The key identifier of the Dataiku project where the LLM is hosted.
Request Body JSON object containing the request payload for the completion operation. This typically includes the prompt and any parameters required by the LLM completion API.

Note: The "Request Body" property expects a JSON structure defining the input for the LLM completion request, such as prompt text, model parameters, etc.

Output

The node outputs the response from the Dataiku DSS API call:

  • The main output is a JSON object representing the completion results returned by the LLM service.
  • If the response is a string, the node attempts to parse it as JSON; otherwise, it returns the raw text.
  • For binary data (not typical for LLM completions), the node would prepare binary output, but this operation primarily deals with JSON responses.

The output JSON will contain the completion text and possibly additional metadata depending on the LLM's API response format.

Dependencies

  • Requires valid Dataiku DSS API credentials, including:
    • The URL of the Dataiku DSS server.
    • A user API key for authentication.
  • The node uses HTTP requests to communicate with the Dataiku DSS REST API.
  • No other external dependencies are required beyond the configured Dataiku DSS API credentials.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that the Dataiku DSS API credentials are properly configured in n8n.
  • Project Key Required: Many operations require the "Project Key" property. Make sure it is provided and correct.
  • Invalid or Missing Parameters: The node validates required parameters per operation. Errors indicating missing parameters mean you need to supply those inputs.
  • API Request Failures: Network issues, incorrect URLs, or invalid API keys can cause request failures. Check connectivity and credential validity.
  • Response Parsing Errors: If the API returns non-JSON or unexpected responses, parsing may fail. Review the API response and adjust the request accordingly.

Links and References


This summary focuses on the LLM Mesh resource and the Perform Completions on a LLM operation, describing how the node constructs the API request, handles authentication, and processes the response for LLM completions within a Dataiku project.

Discussion