Type Parameters

Hierarchy (view full)

Constructors

Properties

VisitComparisonOutput: String
VisitOperationOutput: String
allowedComparators: Comparator[] = ...
allowedOperators: Operator[] = ...

Methods

  • Visits a comparison and returns a VectaraComparisonResult. The comparison's value is checked for type and the comparator is formatted. Throws an error if the value type is not supported.

    Parameters

    • comparison: Comparison

      The comparison to visit.

    Returns String

    A VectaraComparisonResult.

  • Visits an operation and returns a VectaraOperationResult. The operation's arguments are visited and the operator is formatted.

    Parameters

    • operation: Operation

      The operation to visit.

    Returns String

    A VectaraOperationResult.

  • Visits a structured query and returns a VectaraStructuredQueryResult. If the query has a filter, it is visited.

    Parameters

    • query: StructuredQuery

      The structured query to visit.

    Returns unknown

    A VectaraStructuredQueryResult.