You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a langchain engine as described here and then followed the instructions to create an agent with an text2sql-skill as described here. I.e.
CREATE MODEL my_model PREDICT answer USING engine = 'langchain', input_column = 'question', openai_api_key = 'your-model-api-key', -- choose one of OpenAI (openai_api_key) or Anthropic (anthropic_api_key) model_name='gpt-4', -- optional model name from OpenAI or Anthropic mode = 'conversational', user_column = 'question' , assistant_column = 'answer', max_tokens=100, temperature=0, verbose=True, prompt_template='Answer the user input in a helpful way';
CREATE SKILL text_to_sql_skill USING type = 'text2sql', database = 'example_db', -- this is a data source that must be connected to MindsDB with CREATE DATABASE statement tables = ['sales_data'], -- this table comes from the connected example_db data source description = "Sales data that includes stores, sold products, and other sale details";
CREATE AGENT support_agent USING model = 'my_model', -- this was created with CREATE MODEL skills = ['text_to_sql_skill']; -- this was created with CREATE SKILL
Now when I try to query my agent via SELECT * FROM support_agent WHERE question = "Your question here";
I get the error
[langchain_engine/my_model]: AttributeError: 'OpenAIConfig' object has no attribute 'model_dump'
Video or screenshots
No response
Expected behavior
No response
How to reproduce the error
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Short description of current behavior
I've created a langchain engine as described here and then followed the instructions to create an agent with an text2sql-skill as described here. I.e.
CREATE MODEL my_model PREDICT answer USING engine = 'langchain', input_column = 'question', openai_api_key = 'your-model-api-key', -- choose one of OpenAI (openai_api_key) or Anthropic (anthropic_api_key) model_name='gpt-4', -- optional model name from OpenAI or Anthropic mode = 'conversational', user_column = 'question' , assistant_column = 'answer', max_tokens=100, temperature=0, verbose=True, prompt_template='Answer the user input in a helpful way';
CREATE SKILL text_to_sql_skill USING type = 'text2sql', database = 'example_db', -- this is a data source that must be connected to MindsDB with CREATE DATABASE statement tables = ['sales_data'], -- this table comes from the connected example_db data source description = "Sales data that includes stores, sold products, and other sale details";
CREATE AGENT support_agent USING model = 'my_model', -- this was created with CREATE MODEL skills = ['text_to_sql_skill']; -- this was created with CREATE SKILL
Now when I try to query my agent via
SELECT * FROM support_agent WHERE question = "Your question here";
I get the error
[langchain_engine/my_model]: AttributeError: 'OpenAIConfig' object has no attribute 'model_dump'
Video or screenshots
No response
Expected behavior
No response
How to reproduce the error
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: