MyGit

mindsdb/mindsdb

Fork: 4888 Star: 26872 (更新于 2024-11-30 22:10:53)

license: NOASSERTION

Language: Python .

Platform for building AI that can learn and answer questions over federated data.

最后发布版本: v24.7.1.0 ( 2024-07-02 22:55:34)

官方网址 GitHub网址

MindsDB Release Python supported PyPI - Downloads Docker pulls

MindsDB


Website · Docs · Community Slack


MindsDB is the world’s most widely used platform for building AI that can learn from and answer questions across federated data.

Tweet

📖 About Us

MindsDB is a federated query engine designed for AI agents and applications that need to answer questions from one or multiple data sources, including both structured and unstructured data..

🚀 Get Started

🎯 Use Cases

After connecting and preparing your data, you can leverage MindsDB to implement the following use cases:

🎯 Use Case ⚙️ Description Python SDK SQL
RAG Comprehensive RAG that can be populated from numerous data sources (Python) (SQL)
Agents Equip agents to answer questions over structured and unstructured data in MindsDB (Python) (SQL)
Automation Automate AI-data workflows using Jobs (Python) (SQL)

💡 Example

Connecting AI Agents to structured and unstructired data

A common use case involves connecting agents to data. The following example shows how to connect an AI agent to a database so it can perform search over structured data:

First we connect the datasource, in this case we connect a postgres database (you can do this via the SQL editor or SDK)

-- Step 1: Connect a data source to MindsDB
CREATE DATABASE demo_postgres_db
WITH ENGINE = "postgres",
PARAMETERS = {
    "user": "demo_user",
    "password": "demo_password",
    "host": "samples.mindsdb.com",
    "port": "5432",
    "database": "demo",
    "schema": "demo_data"
};

-- See some of the data in there
SELECT * FROM demo_postgres_db.car_sales;

Now you can create an egent that can answer questions over unstructued information in this database (let's use the Python SDK)

import mindsdb_sdk

# connects to the default port (47334) on localhost 
server = mindsdb_sdk.connect()

# create an agent (lets create one that can answer questions over car_sales table
agent = server.agents.create('my_agent')
agent.add_database(
    database='demo_postgres_db',
    tables=['car_sales'], # alternatively, all tables will be taken into account if none specified []
    description='The table "car_sales" contains car sales data')

# send questions to the agent
agent = agents.get('my_agent')
answer = agent.completion([{'question': 'What cars do we have with normal transmission and gas?'}])
print(answer.content)

You add more data to the agent, lets add some unstructured data:

agent.add_file('./cars_info.pdf', 'Details about the cars')
answer = agent.completion([{'question': 'What cars do we have with normal transmission and gas? also include valuable info for a buyer of these cars?'}])
print(answer.content)

Agents are also accessible via API endpoints.

🤝 Contribute

Interested in contributing to MindsDB? Follow our installation guide for development.

You can find our contribution guide here.

We welcome suggestions! Feel free to open new issues with your ideas, and we’ll guide you.

This project adheres to a Contributor Code of Conduct. By participating, you agree to follow its terms.

Also, check out our community rewards and programs.

🤍 Support

If you find a bug, please submit an issue on GitHub.

Here’s how you can get community support:

For commercial support, please contact the MindsDB team.

💚 Current Contributors

Generated with contributors-img.

🔔 Subscribe for Updates

Join our [Slack community](https://mindsdb.com/j

最近版本更新:(数据更新于 2024-09-09 09:06:45)

2024-07-02 22:55:34 v24.7.1.0

2024-06-26 05:50:54 v24.6.4.1

2024-06-26 03:57:19 v24.6.4.0

2024-06-19 23:32:46 v24.6.3.1

2024-06-18 15:33:56 v24.6.3.0

2024-06-13 00:25:18 v24.6.2.2

2024-06-11 20:48:45 v24.6.2.0

2024-06-07 17:35:11 v24.6.1.1

2024-06-04 21:38:58 v24.6.1.0

2024-05-22 19:21:02 v24.5.4.0

主题(topics):

ai, ai-agents, artificial-intelligence, auto-gpt, chatbot, database, forecasting, gpt, gpt4all, hacktoberfest, huggingface, llm, machine-learning, ml, mongodb, mysql, postgres, semantic-search, timeseries

mindsdb/mindsdb同语言 Python最近更新仓库

2024-12-22 09:03:32 ultralytics/ultralytics

2024-12-21 13:26:40 notepad-plus-plus/nppPluginList

2024-12-21 11:42:53 XiaoMi/ha_xiaomi_home

2024-12-21 04:33:22 comfyanonymous/ComfyUI

2024-12-20 18:47:56 home-assistant/core

2024-12-20 15:41:40 jxxghp/MoviePilot