DocArrayInMemoryVectorStore#

class llama_index.vector_stores.DocArrayInMemoryVectorStore(index_path: Optional[str] = None, metric: Literal['cosine_sim', 'euclidian_dist', 'sgeuclidean_dist'] = 'cosine_sim')#

Bases: DocArrayVectorStore

Class representing a DocArray In-Memory vector store.

This class is a document index provided by Docarray that stores documents in memory.

Methods Summary

persist(persist_path[, fs])

Persists the in-memory vector store to a file.

Methods Documentation

persist(persist_path: str, fs: Optional[AbstractFileSystem] = None) None#

Persists the in-memory vector store to a file.

Parameters
  • persist_path (str) – The path to persist the index.

  • fs (fsspec.AbstractFileSystem, optional) – Filesystem to persist to. (doesn’t apply)