SupabaseSimilaritySearch class

Supabase similarity search config.

Supabase supports filtering queries by metadata using the filter parameter: the query will return all rows from the table where the JSON metadata column contains a key-value pair where the key is "key" and the value is "value" as in filter.

Example:

SupabaseSimilaritySearch(
  k: 5,
  filter: {'animal: 'cat'},
  scoreThreshold: 0.8,
),

Constructors

SupabaseSimilaritySearch({int k = 4, Map<String, dynamic>? filter, double? scoreThreshold})
Supabase similarity search config.
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].
finalinherited

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