interface LLMGraphTransformerProps {
    allowedNodes?: string[];
    allowedRelationships?: string[];
    fallbackRelationshipType?: null | string;
    llm: BaseLanguageModel<any, BaseLanguageModelCallOptions>;
    nodeProperties?: string[];
    prompt?: ChatPromptTemplate<any, any>;
    relationshipProperties?: string[];
    strictMode?: boolean;
}

Properties

allowedNodes?: string[]
allowedRelationships?: string[]
fallbackRelationshipType?: null | string

The LLM may rarely create relationships without a type, causing extraction to fail. Use this to provide a fallback relationship type in such case.

llm: BaseLanguageModel<any, BaseLanguageModelCallOptions>
nodeProperties?: string[]
prompt?: ChatPromptTemplate<any, any>
relationshipProperties?: string[]
strictMode?: boolean