ADD_SOURCE

Use the DBMS_AI_GRAPHRAG.ADD_SOURCE procedure to add additional data source to an existing knowledge graph.

Syntax

DBMS_AI_GRAPHRAG.ADD_SOURCE (
    kg_name          IN VARCHAR2,
    source_name      IN VARCHAR2,
    source_column    IN VARCHAR2,
    dml_maintenance  IN BOOLEAN DEFAULT FALSE
);

Parameters

Parameter Description
kg_name Name of the knowledge graph.
source_name Name of the source to add.
source_column Name of the column that contains the source text.
dml_maintenance Enables DML-based maintenance for the source. The default is FALSE.

Example

BEGIN
    DBMS_AI_GRAPHRAG.ADD_SOURCE(
        kg_name          => 'BOOKS_KG',
        source_name      => 'ARTICLES',
        source_column    => 'CONTENT',
        dml_maintenance  => TRUE
    );
END;
/