Class ContainsString

  • All Implemented Interfaces:
    dev.langchain4j.store.embedding.filter.Filter

    
    public class ContainsString
     implements Filter
                        

    A filter that checks if the value of a metadata key contains a specific string. The value of the metadata key must be a string.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String key()
      String comparisonValue()
      boolean test(Object object) Tests if a given object satisfies this Filter.
      boolean equals(Object o)
      int hashCode()
      String toString()
      • Methods inherited from class dev.langchain4j.store.embedding.filter.Filter

        and, and, not, or, or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait