Actions14
Overview
The node integrates with the Ragdoll AI API to manage knowledge bases. Specifically, the Create Knowledge Base operation allows users to create a new knowledge base by specifying its name and type. This is useful in scenarios where you want to programmatically set up a knowledge repository for AI-driven applications such as chatbots, document search, or information retrieval systems.
For example, you might use this node to create a knowledge base named "Product FAQs" of type "Light RAG" to later add documents and query it for customer support automation.
Properties
| Name | Meaning |
|---|---|
| Name | The name of the knowledge base to be created. This is a required string input that identifies the knowledge base. |
| Type | The type of the knowledge base. Options are: - Light RAG - Vector This defines the underlying technology or structure used for the knowledge base. |
Output
The node outputs JSON data representing the response from the Ragdoll AI API after creating the knowledge base. This typically includes details about the newly created knowledge base such as its unique ID, name, type, creation timestamps, and other metadata returned by the API.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the Ragdoll AI API.
- Requires an API authentication token configured in n8n credentials (referred generically as an API key credential).
- The base URL for the API is taken from the configured credentials.
- The node sends a POST request to
/v1/knowledge-bases/endpoint with the provided parameters.
Troubleshooting
- Missing Required Fields: If the "Name" property is empty or missing, the API will likely return an error indicating that the knowledge base name is required. Ensure this field is filled.
- Invalid Type Value: Providing a type value outside the allowed options ("lightrag" or "vector") may cause the API to reject the request.
- Authentication Errors: If the API key credential is invalid or missing, the node will fail to authenticate with the Ragdoll AI API. Verify that the API key is correctly configured.
- Network Issues: Connectivity problems or incorrect base URL configuration can lead to request failures. Confirm network access and credential settings.
- API Limits or Quotas: If the account has usage limits, creating many knowledge bases rapidly may trigger rate limiting errors.
Links and References
- Ragdoll AI API Documentation (generic placeholder link; replace with actual if available)
- n8n Documentation on Creating Custom Nodes