@squidcloud/client
    Preparing search index...

    Interface KnowledgeBaseGraphQueryRelationship

    A relationship answer: the direct relationship between two entities, in its asserted direction, and the documents asserting it.

    interface KnowledgeBaseGraphQueryRelationship {
        description?: string;
        documents: KnowledgeBaseGraphQueryDoc[];
        source: string;
        target: string;
        totalDocs: number;
        type: string;
        weight: number;
    }
    Index
    description?: string

    Relationship description, when the extraction produced one.

    Documents asserting the relationship (capped by limit).

    source: string

    Source entity name.

    target: string

    Target entity name.

    totalDocs: number

    Number of documents asserting it (compare with documents.length for truncation).

    type: string

    Relationship label.

    weight: number

    How many times the relationship was asserted.