Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatOption ¶
type ChatOption func(p *ChatVertexAI)
func WithBatchSize ¶
func WithBatchSize(batchSize int) ChatOption
WithBatchSize is an option for specifying the batch size.
func WithClient ¶
func WithClient(client vertexai.Chat) ChatOption
WithClient is an option for providing the LLM client.
func WithStripNewLines ¶
func WithStripNewLines(stripNewLines bool) ChatOption
WithStripNewLines is an option for specifying the should it strip new lines.
type ChatVertexAI ¶
type ChatVertexAI struct { StripNewLines bool BatchSize int // contains filtered or unexported fields }
ChatVertexAI is the embedder using the VertexAI api.
func NewChatVertexAI ¶
func NewChatVertexAI(opts ...ChatOption) (ChatVertexAI, error)
NewChatVertexAI creates a new ChatVertexAI with options. Options for client, strip new lines and batch.
func (ChatVertexAI) EmbedDocuments ¶
func (ChatVertexAI) EmbedQuery ¶
Click to show internal directories.
Click to hide internal directories.