load

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ch <-chan schema.Document, cfg *config.Config)

Types

type RedisDB

type RedisDB struct {
	// contains filtered or unexported fields
}

func NewRedisDB

func NewRedisDB(redisConfig *config.RedisConfig, ctx context.Context, model *embeddings.EmbedderImpl) (*RedisDB, error)

NewRedisDB initializes and returns a RedisDB instance

func (*RedisDB) InsertEmbedding

func (r *RedisDB) InsertEmbedding(docs []schema.Document, id string) error

type VectorDB

type VectorDB interface {
	InsertEmbedding(docs []schema.Document, id string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL