Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ernie ¶
type Ernie struct {
// contains filtered or unexported fields
}
Ernie Embedding-V1 doc: https://cloud.baidu.com/doc/WENXINWORKSHOP/s/alj562vvu
func NewErnie ¶
NewErnie creates a new Ernie with options. Options for client, strip new lines and batch size.
func (*Ernie) EmbedDocuments ¶
EmbedDocuments use ernie Embedding-V1.
type Option ¶
type Option func(p *Ernie)
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.
Click to show internal directories.
Click to hide internal directories.