Documentation

Alter Metadata

The Alter Metadata component allows you to modify and manage metadata associated with your data, supporting custom fields and metadata operations.

Alter Metadata Component

Alter Metadata interface and configuration

Component Inputs

  • Input: User Text

    The input text to process

  • Metadata: Custom metadata fields

    The metadata to be modified

  • Fields To Remove: List of fields

    Fields to be removed from metadata

Component Output

  • Data: Modified data with updated metadata

    The data with altered metadata

Implementation Example

const alterMetadata = { input: "Sample text content", metadata: { author: "John Doe", timestamp: "2024-03-21", tags: ["sample", "metadata"] }, fieldsToRemove: ["timestamp"] }; // Output: // { // data: { // text: "Sample text content", // metadata: { // author: "John Doe", // tags: ["sample", "metadata"] // } // } // }

Best Practices

  • Keep metadata fields consistent across documents
  • Validate metadata values before modification
  • Document metadata schema changes
  • Maintain metadata versioning