langchain.js
    Preparing search index...
    interface LLMGraphTransformerProps {
        allowedNodes?: string[];
        allowedRelationships?: string[];
        fallbackRelationshipType?: null | string;
        llm: BaseLanguageModel;
        nodeProperties?: string[];
        prompt?: any;
        relationshipProperties?: string[];
        strictMode?: boolean;
    }
    Index

    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
    nodeProperties?: string[]
    prompt?: any
    relationshipProperties?: string[]
    strictMode?: boolean