package rag
- Alphabetic
- Public
- All
Type Members
-
class
ContextSplitAssembler extends AnnotatorModel[ContextSplitAssembler] with HasSimpleAnnotate[ContextSplitAssembler]
Converts and assembles
VECTOR_SIMILARITY_RANKINGS
type annotations intoDOCUMENT
type.Converts and assembles
VECTOR_SIMILARITY_RANKINGS
type annotations intoDOCUMENT
type. The input annotations are expected to be of typeVECTOR_SIMILARITY_RANKINGS
and the output annotation type isDOCUMENT
. It concatenates the results of the input annotations into a single result, separated by a join string. WhenexplodeSplits
is set to true, the splits are exploded into separate annotations.joinString
parameter is used to add the delimiter between results of annotations when combining them into a single result. -
case class
MetadataCriteria(field: String, fieldType: String, operator: String, value: Option[String], matchMode: Option[String], matchValues: Option[List[String]], dateFormats: Option[List[String]], converterFallback: Option[String]) extends Serializable with Product
MetadataCriteria is a case class that represents the criteria to filter the metadata of a Annotation.
MetadataCriteria is a case class that represents the criteria to filter the metadata of a Annotation.
- field
The field of the metadata to filter.
- fieldType
The type of the field to filter. Options: string, int, float, date.
- operator
The operator to apply to the filter. Options: equals, not_equals, greater_than, greater_than_or_equals, less_than, less_than_or_equals, contains, not_contains, regex.
- value
The value to filter.
- matchMode
The match mode to apply to the filter. Options: any, all, none.
- matchValues
The values to match.
- dateFormats
The date formats to apply to the filter.
- converterFallback
The converter fallback when hitting cast exception. Options: filter, not_filter, error.
-
class
VectorDBPostProcessor extends AnnotatorModel[VectorDBPostProcessor] with HasSimpleAnnotate[VectorDBPostProcessor] with CheckLicense with HasFeatures
VectorDBPostProcessor is used to filter and sort the annotations from the com.johnsnowlabs.nlp.annotators.resolution.VectorDBModel.
Value Members
-
object
CONVERTER_FALLBACK_OPTIONS
- Attributes
- protected
-
object
CRITERIA_OPERATORS
- Attributes
- protected
- object ContextSplitAssembler extends DefaultParamsReadable[ContextSplitAssembler] with Serializable
-
object
FIELD_TYPE_OPTIONS
- Attributes
- protected
-
object
MetadataCriteria extends Serializable
Companion object for MetadataCriteria.
-
object
SORTBY_FILTERBY_OPTIONS
- Attributes
- protected
- object VectorDBPostProcessor extends ParamsAndFeaturesReadable[VectorDBPostProcessor] with Serializable