Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *VertexAIPaLM)
Option is a function type that can be used to modify the client.
func WithBatchSize ¶
WithBatchSize is an option for specifying the batch size.
func WithClient ¶
WithClient is an option for providing the LLM client.
func WithStripNewLines ¶
WithStripNewLines is an option for specifying the should it strip new lines.
type VertexAIPaLM ¶
type VertexAIPaLM struct { StripNewLines bool BatchSize int // contains filtered or unexported fields }
VertexAIPaLM is the embedder using the Google PaLM api.
func NewVertexAIPaLM ¶
func NewVertexAIPaLM(opts ...Option) (*VertexAIPaLM, error)
NewVertexAIPaLM creates a new VertexAI with options. Options for client, strip new lines and batch size.
func (VertexAIPaLM) EmbedDocuments ¶
EmbedDocuments creates one vector embedding for each of the texts.
func (VertexAIPaLM) EmbedQuery ¶
EmbedQuery embeds a single text.
Click to show internal directories.
Click to hide internal directories.