GraphRAG

text_replace

Apply a set of replacements to a piece of text.

Usage

verb: text_replace
args:
    column: <column name> # The name of the column containing the text to replace
    to: <column name> # The name of the column to write the replaced text to
    replacements: # A list of replacements to apply
        - pattern: <string> # The regex pattern to find
        replacement: <string> # The string to replace with

Code

replace.py