Straico Official icon

Straico Official

Get data from Straico API

Overview

The node integrates with the Straico API to manage RAG (Retrieval-Augmented Generation) resources. Specifically, the Update operation for the RAG resource allows users to update an existing RAG by uploading a new file associated with it. This is useful when you want to refresh or modify the data that the RAG uses for retrieval and generation tasks.

Typical use cases include:

  • Updating knowledge bases or document collections used in AI-powered assistants.
  • Refreshing content for semantic search or question-answering systems.
  • Maintaining up-to-date information in RAG models without recreating them from scratch.

For example, if you have a RAG instance representing a set of documents, and you want to add or replace those documents with a new PDF or text file, this operation lets you do so programmatically within an n8n workflow.

Properties

Name Meaning
RAG ID The unique identifier of the RAG resource you want to update.
File The file to upload to update the RAG. This should be binary data (e.g., PDF, DOCX).

Output

The output JSON contains the response from the Straico API after updating the RAG. It typically includes confirmation details about the updated RAG resource, such as its ID, status, or metadata returned by the API.

Since the operation involves uploading a file, the node expects binary input data corresponding to the file property. The uploaded file replaces or updates the content associated with the specified RAG.

Example output structure (simplified):

{
  "id": "rag_123456789",
  "status": "updated",
  "message": "RAG updated successfully"
}

(Note: Actual fields depend on the Straico API response.)

Dependencies

  • Requires an active connection to the Straico API via an API key credential configured in n8n.
  • The node sends authenticated HTTP requests to https://api.straico.com.
  • The file to upload must be provided as binary data in the input item under the specified property name.

Troubleshooting

  • Missing Binary Data Error:
    If the specified file property does not exist in the input item's binary data, the node throws an error like:
    No binary data property "files" found on item!
    Resolution: Ensure the input item contains binary data with the exact property name matching the "File" parameter.

  • Authentication Errors:
    If the API key is invalid or missing, requests will fail. Verify that the Straico API credentials are correctly set up in n8n.

  • Invalid RAG ID:
    Providing a non-existent or incorrect RAG ID will cause the API to return an error. Double-check the RAG ID value.

  • File Upload Issues:
    Large files or unsupported formats might cause failures. Confirm the file size and format comply with Straico API requirements.

Links and References


This summary focuses on the RAG resource's Update operation, describing how to upload a file to update an existing RAG using the Straico API through n8n.

Discussion