Uses of Class
io.agentscope.core.rag.integration.haystack.HayStackConfig.Builder
Packages that use HayStackConfig.Builder
-
Uses of HayStackConfig.Builder in io.agentscope.core.rag.integration.haystack
Methods in io.agentscope.core.rag.integration.haystack that return HayStackConfig.BuilderModifier and TypeMethodDescriptionHayStackConfig.Builder.addCustomHeader(String key, String value) Adds a custom HTTP header.Sets the HayStack base URL.static HayStackConfig.BuilderHayStackConfig.builder()HayStackConfig.Builder.customHeaders(Map<String, String> customHeaders) Sets custom HTTP headers.HayStackConfig.Builder.documents(List<HayStackDocument> documents) HayStackConfig.Builder.filterPolicy(FilterPolicy filterPolicy) Policy to determine how filters are applied in retrievers interacting with document stores.A dictionary with filters to narrow down the retriever's search space in the document store.Payload field to group by, must be a string or number field.Maximum amount of points to return per group.HayStackConfig.Builder.maxRetries(Integer maxRetries) Sets the maximum number of retries for failed requests.HayStackConfig.Builder.queryEmbedding(List<Float> queryEmbedding) Use vector retrieval from the vector store.HayStackConfig.Builder.querySparseEmbedding(SparseEmbedding querySparseEmbedding) Sparse Embedding of the query.HayStackConfig.Builder.retrievedDocuments(List<HayStackDocument> retrievedDocuments) The documents must include `metadata` indicating their origin and position:HayStackConfig.Builder.returnEmbedding(Boolean returnEmbedding) Whether to return the embedding of the retrieved Documents.HayStackConfig.Builder.scaleScore(Boolean scaleScore) Whether to scale the scores of the retrieved documents or notHayStackConfig.Builder.scoreThreshold(Double scoreThreshold) A minimal score threshold for the result.HayStackConfig.Builder.successCode(Integer successCode) Sets the HayStack API success code.Sets the HTTP timeout.The maximum number of documents to return.HayStackConfig.Builder.windowSize(Integer windowSize) The number of adjacent documents to include on each side of the retrieved document can be configured using the `window_size` parameter.