AI Agents with LLMs and Skills
Description
With MindsDB, you can create and deploy AI agents that comprise AI models and customizable skills such as knowledge bases and text-to-SQL.
AI agents comprise of skills, such as text2sql and knowledge_base, and a conversational model.
-
Skills provide data resources to an agent, enabling it to answer questions about available data. Learn more about skills here. Learn more about knowledge bases here.
-
A conversational model (like OpenAI) from LangChain utilizes tools as skills to respond to user input. Users can customize these models with their own prompts to fit their use cases.
Syntax
Creating an agent
When creating an agent, you can use the default conversational model:
Or specify model parameters:
Or use an existing model:
Furthermore, you can list all existing agents, get agents by name, update agents, and delete agents.
Assigning skills to an agent
You can add skills to an agent, providing it with data stored in databases, files, or webpages.
The retrieval skill is similar to knowledge bases.
The text2SQL skill retrieves relevant information from databases.
Learn more about all data sources integrated with MindsDB.
Querying an agent
Once you created an agent and assigned it a set of skills, you can ask questions related to your data.
Example
Here is a sample Python code to deploy an agent:
Was this page helpful?