Cogfy Messenger icon

Cogfy Messenger

Interact with Cogfy Messenger API

Overview

This node operation retrieves all chunks associated with a specific source in an embeddings context. It is useful when you need to fetch segmented or partitioned data pieces (chunks) that belong to a particular source identifier. For example, if you have a large document or dataset split into smaller chunks for processing or analysis, this operation allows you to list all those chunks by specifying the source ID.

Properties

Name Meaning
Source Id The ID of the source to list chunks for. This is a required string input identifying the source whose chunks you want to retrieve.

Output

The output will contain a JSON structure listing all chunks related to the specified source ID. Each chunk typically represents a portion of the source data. The exact structure depends on the API response but generally includes identifiers and content or metadata of each chunk.

If the node supports binary data output, it would represent any binary content associated with these chunks, but based on the provided code snippet, only JSON output is indicated.

Dependencies

  • Requires an API key credential to authenticate requests to the Cogfy Messenger API.
  • The base URL for the API must be configured in the node credentials.
  • The node uses the Cogfy Messenger API endpoint to fetch the chunks.

Troubleshooting

  • Missing or invalid Source Id: Ensure the "Source Id" property is provided and correctly matches an existing source in the system.
  • Authentication errors: Verify that the API key credential is valid and has the necessary permissions.
  • Network or API errors: Check connectivity and API availability; ensure the base URL is correctly set.
  • Empty results: If no chunks are returned, confirm that the source ID corresponds to a source with chunks.

Links and References

Discussion