Class InMemoryStore.Builder

java.lang.Object
io.agentscope.core.rag.store.InMemoryStore.Builder
Enclosing class:
InMemoryStore

public static class InMemoryStore.Builder extends Object
Builder for InMemoryStore.
  • Method Details

    • dimensions

      public InMemoryStore.Builder dimensions(int dimensions)
      Sets the vector dimensions.
      Parameters:
      dimensions - the dimension of vectors to be stored (must be positive)
      Returns:
      this builder for method chaining
    • build

      public InMemoryStore build()
      Builds a new InMemoryStore instance.
      Returns:
      a new InMemoryStore instance
      Throws:
      IllegalArgumentException - if dimensions is not positive