Documentation
¶
Index ¶
- type LlamaCppEmbedder
- func (l *LlamaCppEmbedder) Embed(ctx context.Context, texts []string) ([]embedder.Embedding, error)
- func (l *LlamaCppEmbedder) WithArgs(llamacppArgs []string) *LlamaCppEmbedder
- func (l *LlamaCppEmbedder) WithLlamaCppPath(llamacppPath string) *LlamaCppEmbedder
- func (l *LlamaCppEmbedder) WithModel(modelPath string) *LlamaCppEmbedder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LlamaCppEmbedder ¶ added in v0.0.9
type LlamaCppEmbedder struct {
// contains filtered or unexported fields
}
func New ¶
func New() *LlamaCppEmbedder
func (*LlamaCppEmbedder) WithArgs ¶ added in v0.0.9
func (l *LlamaCppEmbedder) WithArgs(llamacppArgs []string) *LlamaCppEmbedder
WithArgs sets the args to pass to the llamacpp binary
func (*LlamaCppEmbedder) WithLlamaCppPath ¶ added in v0.0.9
func (l *LlamaCppEmbedder) WithLlamaCppPath(llamacppPath string) *LlamaCppEmbedder
WithLlamaCppPath sets the path to the llamacpp binary
func (*LlamaCppEmbedder) WithModel ¶ added in v0.0.9
func (l *LlamaCppEmbedder) WithModel(modelPath string) *LlamaCppEmbedder
WithModel sets the model to use for the embedder
Click to show internal directories.
Click to hide internal directories.