Functions
The LLM() Function
MindsDB provides the LLM()
function that lets users incorporate the LLM-generated output directly into the data queries.
Prerequisites
The LLM()
function requires a large language model, which can be defined in the MindsDB configuration under default_llm
or via environment variables as below.
To use the LLM()
function with MindsDB, choosing one of the available model providers and define the following environment variables.
Usage
You can use the LLM()
function to simply ask a question and get an answer.
Here is the output:
Moreover, you can the LLM()
function with your data to swiftly complete tasks such as text generation or summarization.
Here is the output: