fix(dotAI): update default threshold to 0.25#35660
Conversation
|
Claude finished @ihoffmann-dot's task in 1m 21s —— View job Code ReviewA few hardcoded Issues
Worth noting (not blocking)
Behavioral note Lowering the threshold from 0.5 → 0.25 (cosine distance,
|
Summary
Updates dotAI default values to better reflect real-world usage.
0.5to0.25CompletionsForm.BuilderandEmbeddingsDTO.Builderhardcoded fallback defaults to matchChanged Files
Backend
AppKeys.java— threshold default.5→.25; newcompletionTextPromptdefaultCompletionsForm.java—Builder.thresholdfallback.5f→.25fEmbeddingsDTO.java—@JsonProperty(defaultValue)annotation.5f→.25fFrontend
embeddingsSearchThreshold: 0.25Notes
thresholdparameter. Any request or config that setsthresholdexplicitly is unaffected.Related Issue
This PR fixes #35183
EPIC: dotAI Multi-Provider Support #33970