CLEAR_LLM_CACHE

Use the DBMS_AI_GRAPHRAG.CLEAR_LLM_CACHE procedure to clear all cached LLM responses for the specified owner.

Syntax

DBMS_AI_GRAPHRAG.CLEAR_LLM_CACHE (
    kg_owner  IN VARCHAR2 DEFAULT NULL
);

Parameters

Parameter Description
kg_owner Specifies the owner whose LLM cache is cleared. If omitted or NULL (the default), the current user is used. The cache is shared by all knowledge graphs owned by the specified owner.

Example

BEGIN
    DBMS_AI_GRAPHRAG.CLEAR_LLM_CACHE(
        kg_owner => 'APP_SCHEMA'
    );
END;
/