Class VespaEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore.Builder
- Enclosing class:
VespaEmbeddingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()clusterName(String clusterName) documentType(String documentType) logRequests(Boolean logRequests) logResponses(Boolean logResponses) rankProfile(String rankProfile) targetHits(Integer targetHits)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
url
- Parameters:
url- server url, local or cloud one. The latter you can find under Endpoint of your Vespa application, e.g. https://alexey-heezer.langchain4j.mytenant346.aws-us-east-1c.dev.z.vespa-app.cloud/
-
keyPath
- Parameters:
keyPath- local path to the SSL private key file in PEM format. Read docs for details.
-
certPath
- Parameters:
certPath- local path to the SSL certificate file in PEM format. Read docs for details.
-
timeout
- Parameters:
timeout- for Vespa Java client injava.time.Durationformat.
-
namespace
- Parameters:
namespace- required for document ID generation, find more details here.
-
documentType
- Parameters:
documentType- document type, used for document ID generation, find more details here and data querying.
-
clusterName
- Parameters:
clusterName- cluster name, used for deleting all documents, find more details here
-
rankProfile
- Parameters:
rankProfile- rank profile from your .sd schema. Provided example schema configures cosine similarity match.
-
targetHits
- Parameters:
targetHits- sets the number of hits (10 is default) exposed to the real Vespa's first-phase ranking function per content node, find more details here.
-
avoidDups
-
logRequests
-
logResponses
-
build
-