Documentation
¶
Overview ¶
Package inmemory contains an implementation of the inmemory VectorStore
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *Store)
Option is a function type that can be used to modify the client.
func WithEmbedder ¶
func WithEmbedder(e embeddings.Embedder) Option
WithEmbedder is an option for setting the embedder to use. Must be set.
func WithHNSWOptions ¶
WithHNSWOptions is an option for specifying the HNSW index parameters. m: he max number of connections per layer (16 by default). efConstruction: the size of the dynamic candidate list for constructing the graph (64 by default). efSearch: the size of the dynamic candidate list for search (64 by default). vectorSize: the size of the vector (128 by default).
func WithVectorSize ¶
WithVectorSize is an option for setting the size of the vector (128 by default).
type Store ¶
Store is a struct that holds the in-memory vector store.