Documentation ¶
Index ¶
- Constants
- func NewRedisClient(redisUrl string) (store.VectorStore, error)
- func NewRedisClientWithDim(redisUrl string, dim int) (store.VectorStore, error)
- type RedisClient
- func (r RedisClient) Get(ctx context.Context, oid int64, name string, group int) (*vector.Element, error)
- func (r RedisClient) Search(ctx context.Context, query vector.VectorDocQuery, vectors []float32, k int) ([]*vector.Doc, error)
- func (r RedisClient) Store(ctx context.Context, element *vector.Element, extra map[string]any) error
Constants ¶
View Source
const ( EmbeddingPrefix = "friday" EmbeddingIndex = "friday_idx" )
Variables ¶
This section is empty.
Functions ¶
func NewRedisClient ¶
func NewRedisClient(redisUrl string) (store.VectorStore, error)
func NewRedisClientWithDim ¶
func NewRedisClientWithDim(redisUrl string, dim int) (store.VectorStore, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.