Package io.agentscope.core.rag.store
Class ElasticsearchStore.Builder
java.lang.Object
io.agentscope.core.rag.store.ElasticsearchStore.Builder
- Enclosing class:
- ElasticsearchStore
Builder for ElasticsearchStore.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ElasticsearchStore instance.dimensions(int dimensions) Sets the vector dimensions.disableSslVerification(boolean disableSslVerification) Sets whether to disable SSL verification.Sets the index name.Sets the password for authentication.Sets the Elasticsearch connection URL.Sets the username for authentication.
-
Method Details
-
url
Sets the Elasticsearch connection URL.- Parameters:
url- the URL- Returns:
- the builder
-
indexName
Sets the index name.- Parameters:
indexName- the index name- Returns:
- the builder
-
dimensions
Sets the vector dimensions.- Parameters:
dimensions- the number of dimensions- Returns:
- the builder
-
username
Sets the username for authentication.- Parameters:
username- the username- Returns:
- the builder
-
password
Sets the password for authentication.- Parameters:
password- the password- Returns:
- the builder
-
disableSslVerification
Sets whether to disable SSL verification.Warning: Disabling SSL verification is insecure and should only be used for development.
- Parameters:
disableSslVerification- true to disable verification- Returns:
- the builder
-
build
Builds the ElasticsearchStore instance.- Returns:
- the store instance
- Throws:
VectorStoreException- if configuration is invalid
-