Class SimplePersistentVectorStore

java.lang.Object
org.springframework.ai.vectorstore.InMemoryVectorStore
org.springframework.ai.vectorstore.SimplePersistentVectorStore
All Implemented Interfaces:
Consumer<List<Document>>, DocumentWriter, VectorStore

public class SimplePersistentVectorStore extends InMemoryVectorStore
Adds simple serialization/deserialization to the data stored in the InMemoryVectorStore
  • Constructor Details

    • SimplePersistentVectorStore

      public SimplePersistentVectorStore(EmbeddingClient embeddingClient)
  • Method Details

    • save

      public void save(File file)
    • load

      public void load(File file)
    • load

      public void load(org.springframework.core.io.Resource resource)