Interface TypedNetworkRetrieveOptions

Per-query retrieval options.

interface TypedNetworkRetrieveOptions {
    topK: number;
    scope: {
        scope: MemoryScope;
        scopeId: string;
    };
    queryEntities?: string[];
}

Properties

topK: number

Top-K facts to return after activation ranking.

scope: {
    scope: MemoryScope;
    scopeId: string;
}

Memory scope (matches the canonical retrieval scope).

Type declaration

queryEntities?: string[]

Pre-extracted query entities. Pass when the consumer has done its own entity extraction (e.g. via a stronger NER model); skipping passes the query through extractQueryEntities.