VectorStoreSimilaritySearch class
Similarity search. Eg. using Cosine similarity.
- Inheritance
-
- Object
- VectorStoreSearchType
- VectorStoreSimilaritySearch
Constructors
-
VectorStoreSimilaritySearch({int k = 4, Map<
String, dynamic> ? filter, double? scoreThreshold}) -
Similarity search.
Eg. using Cosine similarity.
const
Properties
-
filter
→ Map<
String, dynamic> ? -
The filter to apply to the search.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- k → int
-
The number of documents to return.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scoreThreshold → double?
-
The minimum relevance score a document must have to be returned.
Range:
[0, 1]
.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited