Uses of Class
dev.cachly.SemanticResult
Packages that use SemanticResult
-
Uses of SemanticResult in dev.cachly
Methods in dev.cachly that return SemanticResultModifier and TypeMethodDescription<T> SemanticResult<T> SemanticCache.getOrSet(String prompt, Supplier<T> fn, Function<String, double[]> embedFn, double similarityThreshold) Overload with default namespace, no TTL, normalisation ON.<T> SemanticResult<T> SemanticCache.getOrSet(String prompt, Supplier<T> fn, Function<String, double[]> embedFn, double similarityThreshold, long ttlSeconds, String namespace) Overload with custom namespace + TTL, normalisation ON.<T> SemanticResult<T> SemanticCache.getOrSet(String prompt, Supplier<T> fn, Function<String, double[]> embedFn, double similarityThreshold, long ttlSeconds, String namespace, boolean normalizePrompt, double highConfidenceThreshold) Lookup or compute a semantic cache entry (8-parameter overload, backward-compatible).<T> SemanticResult<T> SemanticCache.getOrSet(String prompt, Supplier<T> fn, Function<String, double[]> embedFn, double similarityThreshold, long ttlSeconds, String namespace, boolean normalizePrompt, double highConfidenceThreshold, String quantize) Full-parameter overload ofSemanticCache.getOrSet(java.lang.String, java.util.function.Supplier<T>, java.util.function.Function<java.lang.String, double[]>, double, long, java.lang.String, boolean, double, java.lang.String, boolean)that supports adaptive threshold (§1) and int8 quantization (§7).<T> SemanticResult<T> SemanticCache.getOrSet(String prompt, Supplier<T> fn, Function<String, double[]> embedFn, double similarityThreshold, long ttlSeconds, String namespace, boolean normalizePrompt, double highConfidenceThreshold, String quantize, boolean useHybrid) Full-parameter overload ofSemanticCache.getOrSet(java.lang.String, java.util.function.Supplier<T>, java.util.function.Function<java.lang.String, double[]>, double, long, java.lang.String, boolean, double, java.lang.String, boolean)that supports adaptive threshold (§1), int8 quantization (§7) and Hybrid BM25+Vector RRF search (§3).