MindsDB enables humans, AI, agents, and applications to get highly accurate answers across disparate data sources and types. With this technology, we can make the complex process to be loveable and easy to handling by just create the data, store the data & make mindsdb process it from behind it.
CLI Mindsdb help you to automate the process from create knowledge base, ingest the data, do semantic search, execute mindsdb query, and create to sync a job all in one process by just called the command that you want to process it by a second.🔥
1.) Knowledge Base with Metadata:
- Creates SQLite KB with metadata columns (source, category, importance)
- Builds MindsDB datasource for advanced querying
- ingest command with metadata parameters
2.) Semantic Search with Filtering:
- search command with content search and metadata filtering
- Combines LIKE queries with metadata conditions
- Example: search "AI" --source=research --min-importance=3
3.) Automated Data Sync:
- create_job sets up periodic data ingestion
- Simulates fetching from external sources
- Uses MindsDB's job scheduler (runs hourly)
Make sure that you install this prerequisite to make it work.
1.) Install Docker Desktop
2.) Open Docker Desktop and type this in your terminal to start mindsdb:
docker run -p 47334:47334 mindsdb/mindsdb
3.) Do install requests package from python by type in your terminal:
pip install requests
- Clone the repo
git clone https://github.com/daviddprtma/cli-mindsdb.git
- Create KB Structure
python kb_cli.py init
- Create Sync Job
python kb_cli.py create_job
- Create Ingest Data
python kb_cli.py ingest "Transformers revolutionized NLP" \--source=research --category=ml --importance=5
- Find semantic search
python kb_cli.py search "AI" --category=ml