Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Embedder ¶ added in v0.1.2
Embedder returns the ai.Embedder with the given server address. It returns nil if the embedder was not defined.
func IsDefinedEmbedder ¶ added in v0.1.2
IsDefinedEmbedder reports whether the embedder with the given server address is defined by this plugin.
func IsDefinedModel ¶ added in v0.1.0
IsDefinedModel reports whether a model is defined.
Types ¶
type EmbedOptions ¶ added in v0.1.2
type EmbedOptions struct {
Model string `json:"model"`
}
type ModelDefinition ¶
ModelDefinition represents a model with its name and type.
type Ollama ¶ added in v0.3.0
type Ollama struct { ServerAddress string // Server address of oLLama. // contains filtered or unexported fields }
Ollama provides configuration options for the Init function.
func (*Ollama) DefineEmbedder ¶ added in v0.3.0
DefineEmbedder defines an embedder with a given server address.
func (*Ollama) DefineModel ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.