Actions22
- Broadcasts Actions
- Embeddings Actions
- Contacts Actions
- Conversations Actions
- Tags Actions
Overview
This node operation, "Create a new chunk" under the "Embeddings" resource, allows users to create or add a new data chunk for embeddings processing. It is useful in scenarios where you want to send structured JSON data representing text or other content chunks to an embedding service for further analysis, vectorization, or storage.
Practical examples include:
- Sending a piece of text or document segment to be converted into an embedding vector.
- Adding new data chunks dynamically for machine learning or semantic search applications.
- Integrating with external embedding APIs that require JSON-formatted input data.
Properties
| Name | Meaning |
|---|---|
| Data | A required JSON object containing the data chunk to be processed. This should be a valid JSON structure representing the content you want to embed. |
Output
The output will contain a json field representing the response from the embedding creation process. This typically includes information about the newly created chunk, such as its ID, status, or embedding vector data depending on the external API's response.
If the node supports binary data output (not evident from the provided code), it would represent any associated binary content related to the embedding chunk, but this is not indicated here.
Dependencies
- Requires an API key credential for authentication with the external embedding service.
- The base URL and headers for the API requests are configured via credentials.
- Depends on the external embedding API defined in the bundled OpenAPI specification (
openapi.json).
Troubleshooting
- Invalid JSON in Data property: Ensure the JSON entered in the "Data" property is well-formed. Parsing errors will prevent the request from being sent.
- Authentication errors: Verify that the API key credential is correctly set up and has the necessary permissions.
- API endpoint issues: Confirm the base URL in credentials is correct and the external service is reachable.
- Unexpected API responses: Check the external service documentation for required data formats and adjust the "Data" JSON accordingly.
Links and References
- Refer to the external embedding service API documentation for details on the expected JSON structure and response format.
- n8n documentation on creating custom nodes and using JSON input properties.