Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface {
Get(key string) (model.Embedding, bool, error)
Put(key string, emb model.Embedding) error
Close() error
}
Cache provides get/put for embeddings keyed by content hash.
type JSONCache ¶
type JSONCache struct {
// contains filtered or unexported fields
}
JSONCache is a file-backed JSON cache.
func NewJSONCache ¶
Click to show internal directories.
Click to hide internal directories.