pip install .[langchain]
or from the requirements.txt file.langchain_engine
) should be used as a value for the engine
parameter in the USING
clause of the CREATE MODEL
statement.
CREATE MODEL
statement is used to create, train, and deploy models within MindsDB.
temperature
or max_tokens
.
tool_based_agent
model using the LangChain engine, as defined in the engine
parameter. This model answers users’ questions in a helpful way, as defined in the prompt_template
parameter, which specifies input
as the input column when calling the model.
mysql_demo_db.house_sales
table, the agent uses the Metadata tool. Then the agent prepares the response.
beds
column in the mysql_demo_db.home_rentals
table, it uses the number_of_rooms
column and writes the following query:
INSERT INTO
the local_database
database.