Documentation
¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Clear(ctx context.Context) error
- func (c *Cache) Get(ctx context.Context, query string) (*Result, error)
- func (c *Cache) Set(ctx context.Context, embedding []float64, answer string) error
- func (c *Cache) WithScoreThreshold(scoreThreshold float64) *Cache
- func (c *Cache) WithTopK(topK int) *Cache
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = fmt.Errorf("cache miss")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.