You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/7.0/Raven.Documentation.Pages/ai-integration/vector-search/vector-search-using-dynamic-query.dotnet.markdown
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -131,12 +131,14 @@
131
131
132
132
***Minimum similarity**
133
133
You can specify the minimum similarity to use when searching for related vectors.
134
-
Can be a value between `0.0f` and `1.0f`.
135
-
A value closer to `1.0f` requires higher similarity between vectors,
136
-
while a value closer to `0.0f` allows for less similarity.
134
+
The value can be between `0.0f` and `1.0f`.
135
+
* A value closer to `1.0f` requires higher similarity between vectors,
136
+
while a value closer to `0.0f` allows for less similarity.
137
+
***Important**: To filter out less relevant results when performing vector search queries,
138
+
it is recommended to explicitly specify the minimum similarity level at query time.
137
139
138
140
If not specified, the default value is taken from the following configuration key:
Copy file name to clipboardExpand all lines: Documentation/7.0/Samples/csharp/Raven.Documentation.Samples/AiIntegration/VectorSearch/VectorSearchUsingDynamicQuery.cs
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ public async Task Examples()
34
34
// Call 'ByText'
35
35
// Provide the term for the similarity comparison
36
36
searchTerm =>searchTerm.ByText("italian food"),
37
-
// Optionally, specify the minimum similarity level
37
+
// It is recommended to specify the minimum similarity level
38
38
0.82f,
39
39
// Optionally, specify the number of candidates for the search
40
40
20)
@@ -188,7 +188,7 @@ where vector.search(embedding.text(Name), $searchTerm, 0.82, 20)")
188
188
// Provide the vector for the similarity comparison
0 commit comments