struct AI::Google::Tools::VertexRagStore

Overview

Vertex RAG Store tool.

Enables the model to perform RAG searches against a Vertex RAG Store. Only works with Vertex Gemini models.

Defined in:

ai/google/google_tools.cr

Constant Summary

ID = "google.vertex_rag_store"
NAME = "vertex_rag_store"

Constructors

Instance Method Summary

Constructor Detail

def self.new(rag_corpus : String, top_k : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def args : Hash(String, JSON::Any) #

[View source]
def id : String #

[View source]
def name : String #

[View source]
def rag_corpus : String #

RagCorpus resource name. Example: "projects/{project}/locations/{location}/ragCorpora/{rag_corpus}"


[View source]
def top_k : Int32 | Nil #

Number of top contexts to retrieve.


[View source]
def type : String #

[View source]