get_query_constructor_prompt(
document_contents: str,
attribute_info: Sequence[AttributeInfo | dict| Name | Type | Description |
|---|---|---|
document_contents* | str | The contents of the document to be queried. |
attribute_info* | Sequence[AttributeInfo | dict] | A list of AttributeInfo objects describing the attributes of the document. |
examples | Sequence | None | Default: None |
allowed_comparators | Sequence[Comparator] | Default: tuple(Comparator) |
allowed_operators | Sequence[Operator] | Default: tuple(Operator) |
enable_limit | bool | Default: False |
schema_prompt | BasePromptTemplate | None | Default: None |
kwargs | Any | Default: {} |
Create query construction prompt.
Optional list of examples to use for the chain.
Sequence of allowed comparators.
Sequence of allowed operators.
Whether to enable the limit operator.
Prompt for describing query schema. Should have string input variables allowed_comparators and allowed_operators.
Additional named params to pass to FewShotPromptTemplate init.