chains.query_constructor.parser.get_parser([...])
Returns a parser for the query language.
chains.query_constructor.parser.v_args(...)
chains.sql_database.query.create_sql_query_chain(llm, db)
Create a chain that generates SQL queries.
langchain.chat_models¶
Chat Models are a variation on language models.
While Chat Models use language models under the hood, the interface they expose
is a bit different. Rather than expose a “text in, text out” API, they expose
an interface where “chat messages” are the inputs and outputs.
Class hierarchy:
BaseLanguageModel --> BaseChatModel --> <name>  # Examples: ChatOpenAI, ChatGooglePalm
Main helpers:
AIMessage, BaseMessage, HumanMessage
Classes¶
chat_models.openai.ChatOpenAI
Wrapper around OpenAI Chat large language models.
chat_models.human.HumanInputChatModel
ChatModel which returns user input as the response.
chat_models.azureml_endpoint.AzureMLChatOnlineEndpoint
Azure ML Chat Online Endpoint models.
chat_models.azureml_endpoint.LlamaContentFormatter()
Content formatter for LLaMa
chat_models.base.BaseChatModel
Create a new model by parsing and validating input data from keyword arguments.
chat_models.base.SimpleChatModel
Simple Chat Model.
chat_models.vertexai.ChatVertexAI
Wrapper around Vertex AI large language models.
chat_models.azure_openai.AzureChatOpenAI
Wrapper around Azure OpenAI Chat Completion API.
chat_models.jinachat.JinaChat
Wrapper for Jina AI's LLM service, providing cost-effective image chat capabilities.
chat_models.google_palm.ChatGooglePalm
Wrapper around Google's PaLM Chat API.
chat_models.google_palm.ChatGooglePalmError
Error raised when there is an issue with the Google PaLM API.
chat_models.anthropic.ChatAnthropic
Anthropic's large language chat model.