Class InfinispanEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
- Enclosing class:
InfinispanEmbeddingStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the storecacheConfig
(String cacheConfig) Infinispan cache config to be used, will be created on first accessInfinispan cache name to be used, will be created on first accesscreateCache
(boolean createCache) Create cache in the serverInfinispan vector dimensionInfinispan distance for knn queryInfinispan schema file nameinfinispanConfigBuilder
(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder) Infinispan Configuration BuilderlangchainItemName
(String langchainItemName) Infinispan schema langchainItemNamemetadataItemName
(String metadataItemName) Infinispan schema metadataItemNamepackageName
(String packageName) Infinispan schema package nameregisterSchema
(boolean registerSchema) Register Langchain schema in the serversimilarity
(String similarity) Infinispan similarity for the embedding definition
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheName
Infinispan cache name to be used, will be created on first access -
cacheConfig
Infinispan cache config to be used, will be created on first access -
dimension
Infinispan vector dimension -
distance
Infinispan distance for knn query -
similarity
Infinispan similarity for the embedding definition -
packageName
Infinispan schema package name -
fileName
Infinispan schema file name -
langchainItemName
Infinispan schema langchainItemName -
metadataItemName
Infinispan schema metadataItemName -
registerSchema
Register Langchain schema in the server -
createCache
Create cache in the server -
infinispanConfigBuilder
public InfinispanEmbeddingStore.Builder infinispanConfigBuilder(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder) Infinispan Configuration Builder -
build
Builds the store- Returns:
- InfinispanEmbeddingStore
-