Skip to content

VectorCache #

Bases: object

Cache wrapping an embedding model. Pass to Graph.vectorise(model=...) or other vectorisation entry points.

Parameters:

Name Type Description Default
v_cache OpenAIEmbeddings

Embedding model configuration.

required
cache str

Path to persist the embedding cache on disk. Defaults to None.

required

__new__(v_cache, cache=None) #

Create and return a new object. See help(type) for accurate signature.