Contextual AI icon

Contextual AI

Access Contextual AI tools for agents, parsing, querying, and reranking.

Overview

The node "Contextual AI" provides access to various Contextual AI tools, including operations related to agents, parsing, querying, and reranking. Specifically, the "Create Datastore" operation under the "Datastore" resource allows users to create a new datastore by specifying its name and optional configuration details.

This node is beneficial in scenarios where users want to programmatically manage datastores for AI-driven applications, such as organizing product documentation, knowledge bases, or other structured data repositories that can be queried or processed by AI models.

Practical example:

  • Creating a new datastore named "Product Documentation" with default settings.
  • Creating a datastore with a custom JSON configuration to tailor its behavior or schema.

Properties

Name Meaning
Datastore Name The name of the datastore to be created (e.g., "Product Documentation"). Required field.
Configuration (JSON String) Optional stringified JSON defining the datastore's configuration. If omitted, defaults are used.
Authentication Method of authentication to use; currently supports "API Key".

Output

The node outputs an array of JSON objects representing the result of the datastore creation operation. Each output item corresponds to the response from the API or service after attempting to create the datastore. The exact structure depends on the external service's response but typically includes identifiers, status, and metadata about the newly created datastore.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating requests to the Contextual AI service.
  • The node depends on an external Contextual AI API endpoint to perform datastore creation.
  • Proper configuration of the API key credential within n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing API key leading to authentication failures.
    • Malformed JSON string in the "Configuration" property causing parsing errors.
    • Missing required "Datastore Name" property resulting in validation errors.
  • Error messages and resolutions:

    • Authentication failed: Verify that the API key credential is correctly set up and has proper permissions.
    • Invalid JSON configuration: Ensure the JSON string provided in the "Configuration" field is well-formed.
    • Missing datastore name: Provide a non-empty string for the "Datastore Name" property.

Links and References

  • No direct links available from the source code. For more information, consult the official documentation of the Contextual AI service or the n8n community forums for usage examples and support.

Discussion