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

    Interface VertexAiRagMemoryServiceOptions

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

    默认值为: process.env.GOOGLE_CLOUD_LOCATION.

    projectId?: string

    默认值为: process.env.GOOGLE_CLOUD_PROJECT.

    ragCorpus: string

    projects/{project}/locations/{location}/ragCorpora/{ragCorpusId}或者是一个…… (“bare”在这里指代某种“基本形式”或“未装饰的状态”) {ragCorpusId} 当项目名称和项目所在的位置可以被准确识别(即能够被解析)时。

    similarityTopK?: number

    需要检索的上下文(context)的数量。该信息以某种格式被发送出去。 ragRetrievalConfig.topK.

    vectorDistanceThreshold?: number

    仅返回距离该向量小于指定距离(此处为“vector distance”)的上下文信息。默认值为 10。