load_query_constructor_chain(
llm: BaseLanguageModel,
document_contents: str,
attribute_info: Sequence[AttributeInfo| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | BaseLanguageModel to use for the chain. |
document_contents* | str | The contents of the document to be queried. |
attribute_info* | Sequence[AttributeInfo | dict] | Sequence of attributes in the document. |
examples | list | 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: {} |
Load a query constructor chain.
Optional list of examples to use for the chain.
Sequence of allowed comparators. Defaults to all
Comparator objects.
Sequence of allowed operators. Defaults to all Operator
objects.
Whether to enable the limit operator.
Prompt for describing query schema. Should have string input variables allowed_comparators and allowed_operators.
Arbitrary named params to pass to LLMChain.