Interface for the fields required to initialize a TimeWeightedVectorStoreRetriever instance.

interface TimeWeightedVectorStoreRetrieverFields {
    callbacks?: Callbacks;
    decayRate?: number;
    defaultSalience?: number;
    k?: number;
    memoryStream?: DocumentInterface<Record<string, any>>[];
    metadata?: Record<string, unknown>;
    otherScoreKeys?: string[];
    searchKwargs?: number;
    tags?: string[];
    vectorStore: VectorStoreInterface;
    verbose?: boolean;
}

Hierarchy

  • BaseRetrieverInput
    • TimeWeightedVectorStoreRetrieverFields

Properties

callbacks?: Callbacks
decayRate?: number
defaultSalience?: number
k?: number
memoryStream?: DocumentInterface<Record<string, any>>[]
metadata?: Record<string, unknown>
otherScoreKeys?: string[]
searchKwargs?: number
tags?: string[]
vectorStore: VectorStoreInterface
verbose?: boolean