MetadataFilter

org.llm4s.vectorstore.MetadataFilter
See theMetadataFilter companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object All extends MetadataFilter

Match all records.

Match all records.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
All.type
final case class And(left: MetadataFilter, right: MetadataFilter) extends MetadataFilter

Combine filters with AND logic.

Combine filters with AND logic.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Contains(key: String, substring: String) extends MetadataFilter

Match records where metadata key contains substring.

Match records where metadata key contains substring.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Equals(key: String, value: String) extends MetadataFilter

Match records where metadata key equals value.

Match records where metadata key equals value.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final implicit class FilterOps(val filter: MetadataFilter) extends AnyVal

DSL for building filters.

DSL for building filters.

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final case class HasKey(key: String) extends MetadataFilter

Match records that have a metadata key.

Match records that have a metadata key.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class In(key: String, values: Set[String]) extends MetadataFilter

Match records where metadata key is in a set of values.

Match records where metadata key is in a set of values.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Not(filter: MetadataFilter) extends MetadataFilter

Negate a filter.

Negate a filter.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Or(left: MetadataFilter, right: MetadataFilter) extends MetadataFilter

Combine filters with OR logic.

Combine filters with OR logic.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Implicits

Implicits

final implicit def FilterOps(filter: MetadataFilter): FilterOps

DSL for building filters.

DSL for building filters.

Attributes