Skip to main content
Configuration for KnowledgeNode using knowledge provider settings. Remarks: This approach creates both the node and the underlying knowledge component. Extends: AbstractNodeProps

Interface Definition

interface KnowledgeNodeProps {
    id?: string;
    knowledgeId: string;
    knowledgeRecords: string[];
    maxCharsPerChunk?: number;
    maxChunksPerDocument?: number;
    reportToClient?: boolean;
    retrievalConfig?: Camelize<RetrievalConfig>;
}

Properties

id (optional)

id?: string
Optional explicit node identifier. Remarks: If omitted, a stable auto-generated ID based on the class name is assigned. Inherited from: AbstractNodeProps.id

knowledgeId

knowledgeId: string
ID of the knowledge collection

knowledgeRecords

knowledgeRecords: string[]
Collection of knowledge records

maxCharsPerChunk (optional)

maxCharsPerChunk?: number
Maximum characters per chunk (default: 1000)

maxChunksPerDocument (optional)

maxChunksPerDocument?: number
Maximum chunks per document (default: 10)

reportToClient (optional)

reportToClient?: boolean
Whether this node should report its outputs to the client. If set to true, you will see the output of this node in the GraphOutputStream. Inherited from: AbstractNodeProps.reportToClient

retrievalConfig (optional)

retrievalConfig?: Camelize<RetrievalConfig>
Configuration for retrieving relevant information