Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *ZhiPuAI)
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 ¶
func WithClient(client llmzhipuai.ZhiPuAI) Option
WithClient is an option for providing the LLM client.
func WithStripNewLines ¶
WithStripNewLines is an option for specifying the should it strip new lines.
type ZhiPuAI ¶
func NewZhiPuAI ¶
func (ZhiPuAI) EmbedDocuments ¶
EmbedDocuments creates one vector embedding for each of the texts.
Click to show internal directories.
Click to hide internal directories.