Package dev.cachly.api.model
Class SearchRequest
java.lang.Object
dev.cachly.api.model.SearchRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-17T00:43:25.074268745Z[Etc/UTC]",
comments="Generator version: 7.5.0")
public class SearchRequest
extends Object
SearchRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumModality of the search: text-only, image-only, or multimodal (combined) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEmbeddingItem(BigDecimal embeddingItem) addImageEmbeddingItem(BigDecimal imageEmbeddingItem) embedding(List<BigDecimal> embedding) embeddingQ8(QuantizedEmbedding embeddingQ8) embeddingType(SearchRequest.EmbeddingTypeEnum embeddingType) booleanReturn true if this SearchRequest object is equal to o.Float64 text embedding vector (e.g.int8-quantized text embedding (§7) – reduces payload by ~8xModality of the search: text-only, image-only, or multimodal (combined)Enable hybrid BM25+Vector RRF search (§3)Float64 image embedding vector for multimodal searchint8-quantized image embedding for multimodal searchUse 'auto' for automatic namespace detection (§4)Required when hybrid=true (§3 BM25+Vector)Get threshold minimum: 0.0 maximum: 1.0Override threshold with F1-calibrated value (§1)inthashCode()imageEmbedding(List<BigDecimal> imageEmbedding) imageEmbeddingQ8(QuantizedEmbedding imageEmbeddingQ8) voidsetEmbedding(List<BigDecimal> embedding) voidsetEmbeddingQ8(QuantizedEmbedding embeddingQ8) voidsetEmbeddingType(SearchRequest.EmbeddingTypeEnum embeddingType) voidvoidsetImageEmbedding(List<BigDecimal> imageEmbedding) voidsetImageEmbeddingQ8(QuantizedEmbedding imageEmbeddingQ8) voidsetNamespace(String namespace) voidvoidsetThreshold(Double threshold) voidsetUseAdaptiveThreshold(Boolean useAdaptiveThreshold) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.useAdaptiveThreshold(Boolean useAdaptiveThreshold)
-
Field Details
-
JSON_PROPERTY_EMBEDDING
- See Also:
-
JSON_PROPERTY_EMBEDDING_Q8
- See Also:
-
JSON_PROPERTY_IMAGE_EMBEDDING
- See Also:
-
JSON_PROPERTY_IMAGE_EMBEDDING_Q8
- See Also:
-
JSON_PROPERTY_EMBEDDING_TYPE
- See Also:
-
JSON_PROPERTY_NAMESPACE
- See Also:
-
JSON_PROPERTY_THRESHOLD
- See Also:
-
JSON_PROPERTY_USE_ADAPTIVE_THRESHOLD
- See Also:
-
JSON_PROPERTY_PROMPT
- See Also:
-
JSON_PROPERTY_HYBRID
- See Also:
-
-
Constructor Details
-
SearchRequest
public SearchRequest()
-
-
Method Details
-
embedding
-
addEmbeddingItem
-
getEmbedding
Float64 text embedding vector (e.g. 1536 dims for OpenAI text-embedding-3-small)- Returns:
- embedding
-
setEmbedding
-
embeddingQ8
-
getEmbeddingQ8
int8-quantized text embedding (§7) – reduces payload by ~8x- Returns:
- embeddingQ8
-
setEmbeddingQ8
-
imageEmbedding
-
addImageEmbeddingItem
-
getImageEmbedding
Float64 image embedding vector for multimodal search- Returns:
- imageEmbedding
-
setImageEmbedding
-
imageEmbeddingQ8
-
getImageEmbeddingQ8
int8-quantized image embedding for multimodal search- Returns:
- imageEmbeddingQ8
-
setImageEmbeddingQ8
-
embeddingType
-
getEmbeddingType
Modality of the search: text-only, image-only, or multimodal (combined)- Returns:
- embeddingType
-
setEmbeddingType
-
namespace
-
getNamespace
Use 'auto' for automatic namespace detection (§4)- Returns:
- namespace
-
setNamespace
-
threshold
-
getThreshold
Get threshold minimum: 0.0 maximum: 1.0- Returns:
- threshold
-
setThreshold
-
useAdaptiveThreshold
-
getUseAdaptiveThreshold
Override threshold with F1-calibrated value (§1)- Returns:
- useAdaptiveThreshold
-
setUseAdaptiveThreshold
-
prompt
-
getPrompt
Required when hybrid=true (§3 BM25+Vector)- Returns:
- prompt
-
setPrompt
-
hybrid
-
getHybrid
Enable hybrid BM25+Vector RRF search (§3)- Returns:
- hybrid
-
setHybrid
-
equals
Return true if this SearchRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-