Documentation
¶
Overview ¶
Package embedding provides text embedding capabilities using local GGUF models.
Index ¶
Constants ¶
View Source
const (
// DefaultGPULayers is the default number of GPU layers (0 = CPU only).
DefaultGPULayers = 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedder ¶
type Embedder struct {
// contains filtered or unexported fields
}
Embedder provides text embedding capabilities using llama.cpp via kelindar/search.
func New ¶
New creates a new Embedder with the given GGUF model file path. Set gpuLayers > 0 to enable GPU acceleration (requires Vulkan).
Click to show internal directories.
Click to hide internal directories.