similarityThreshold property

  1. @TagNumber.new(5)
double get similarityThreshold

Minimum cosine similarity threshold (0.0–1.0). Chunks below this score are discarded before being passed to the LLM as context. Optional so callers can distinguish "unset" from explicit 0.0 (accept-everything) without losing the canonical default. Default is 0.0 (accept-everything): MiniLM-class sentence embeddings produce cosine similarities that rarely exceed ~0.5 even for relevant chunks, and chunking a document lowers each chunk's similarity further, so any positive floor filters out real matches — a multi-chunk document then retrieves nothing and the answer model reports "no information". top_k bounds the result count instead of a similarity floor.

Implementation

@$pb.TagNumber(5)
$core.double get similarityThreshold => $_getN(4);
  1. @TagNumber.new(5)
set similarityThreshold (double value)

Implementation

@$pb.TagNumber(5)
set similarityThreshold($core.double value) => $_setFloat(4, value);