A memory service that uses Vertex AI RAG for storage and retrieval.

Implements

Constructors

  • Initializes a VertexAiRagMemoryService.

    Parameters

    • OptionalragCorpus: string

      The name of the Vertex AI RAG corpus to use. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus_id} or {rag_corpus_id}

    • OptionalsimilarityTopK: number

      The number of contexts to retrieve.

    • vectorDistanceThreshold: number = 10

      Only returns contexts with vector distance smaller than the threshold.

    Returns VertexAiRagMemoryService

Methods