query

Function

Uses the query method to call an LLM for QA.

Prototype

def query(text, llm_config, *args, **kwargs)

Parameters

Parameter

Data Type

Required/Optional

Description

text

str

Required

Text information to be queried.

llm_config

LLMParameterConfig

Optional

Parameters for calling an LLM. For details, see LLMParameterConfig.

args

-

Optional

Input valid parameters, which are determined by a specific chain.

kwargs

-

Optional

Input valid parameters, which are determined by a specific chain.