Package io.agentscope.core.rag.store
Class InMemoryStore.Builder
java.lang.Object
io.agentscope.core.rag.store.InMemoryStore.Builder
- Enclosing class:
- InMemoryStore
Builder for InMemoryStore.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new InMemoryStore instance.dimensions(int dimensions) Sets the vector dimensions.
-
Method Details
-
dimensions
Sets the vector dimensions.- Parameters:
dimensions- the dimension of vectors to be stored (must be positive)- Returns:
- this builder for method chaining
-
build
Builds a new InMemoryStore instance.- Returns:
- a new InMemoryStore instance
- Throws:
IllegalArgumentException- if dimensions is not positive
-