ADK for TypeScript: API Reference
    Preparing search index...

    Interface VertexAiRagMemoryServiceOptions

    interface VertexAiRagMemoryServiceOptions {
        location?: string;
        projectId?: string;
        ragCorpus: string;
        similarityTopK?: number;
        vectorDistanceThreshold?: number;
    }

    Properties

    location?: string

    Defaults to process.env.GOOGLE_CLOUD_LOCATION.

    projectId?: string

    Defaults to process.env.GOOGLE_CLOUD_PROJECT.

    ragCorpus: string

    projects/{project}/locations/{location}/ragCorpora/{ragCorpusId}, or a bare {ragCorpusId} when the project and the location are resolvable.

    similarityTopK?: number

    Number of contexts to retrieve. Sent as ragRetrievalConfig.topK.

    vectorDistanceThreshold?: number

    Only return contexts below this vector distance. Defaults to 10.