get_parser#

langchain.chains.query_constructor.parser.get_parser(allowed_comparators: Sequence[Comparator] | None = None, allowed_operators: Sequence[Operator] | None = None, allowed_attributes: Sequence[str] | None = None) object[source]#

Return a parser for the query language.

Parameters:
  • allowed_comparators (Sequence[Comparator] | None) – Optional[Sequence[Comparator]]

  • allowed_operators (Sequence[Operator] | None) – Optional[Sequence[Operator]]

  • allowed_attributes (Sequence[str] | None) –

Returns:

Lark parser for the query language.

Return type:

object