Skip to content

Commit

Permalink
update semantic ratio assert
Browse files Browse the repository at this point in the history
  • Loading branch information
memishood committed Dec 31, 2024
1 parent 9c2dd85 commit a3d03d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/query_parameters/hybrid_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class HybridSearch {
required this.embedder,
required this.semanticRatio,
}) : assert(
semanticRatio > 0.0 && semanticRatio < 1.0,
"'semanticRatio' must be greater than 0.0 and less than 1.0",
semanticRatio >= 0.0 && semanticRatio <= 1.0,
"'semanticRatio' must be between 0.0 and 1.0",
);

Map<String, Object?> toMap() => {
Expand Down

0 comments on commit a3d03d3

Please sign in to comment.