Creating Knowledge bases using MindsDB
Chirag Aggarwal

Chirag Aggarwal @chiragagg5k

About: Platform Engineer @Appwrite

Location:
India
Joined:
Nov 2, 2022

Creating Knowledge bases using MindsDB

Publish Date: Jun 25
32 3

Whenever we think we knowledge base, what is the first thing that comes to our mind?

For me it had always been a library.

Hundreds of thousands of meticulously organised lines of pure knowledge. In digital form, this knowledge is what we call as data. The internet is filled with data, and with the arrival of AI harnessing its power has become easier than ever before.

But what if you wanted your own library, your own knowledge base?

In this blog, we will discuss how you can do just that, and use this library of yours to ask anything you would like using simple natural language. We will create a knowledge base of various research papers, ask it some complex questions and for fun, stress test the hell out of it.

So let’s begin!

Creating a knowledge base

As an example lets create Scholar Map, an AI-powered research assistant where you can store any research paper and query for them in simple natural language.

To get started, first setup mindsdb self-hosted instance by following these docs - https://docs.mindsdb.com/setup/self-hosted/docker

Make sure the instance is available on http://127.0.0.1:47334.

Now,

  • Clone the repository:
git clone https://github.com/ChiragAgg5k/scholar-map.git
cd scholar-map
Enter fullscreen mode Exit fullscreen mode
  • Install uv package manager if not already by following these installation docs.

  • Sync up dependencies:

uv sync
Enter fullscreen mode Exit fullscreen mode
  • Start the application using:
uv run main.py
Enter fullscreen mode Exit fullscreen mode

You should see this:

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│  Scholar Map                                                                                                                                                                  │
╰───────────────────────────────────────────────────────────────── Research Paper Knowledge Management System ──────────────────────────────────────────────────────────────────╯
Connecting to MindsDB...
Attempting to connect to MindsDB server...
Connection established successfully!
Setting up research papers knowledge base...
Enter fullscreen mode Exit fullscreen mode

The script will automatically run the configuration code and setup knowledge base.

Demo

Comments 3 total

  • K Om Senapati
    K Om Senapati Jun 25, 2025

    What are the use cases of scholar map ?

    • Chirag Aggarwal
      Chirag AggarwalJun 25, 2025

      so i really love reading research papers. often times i remember a part of it but struggle to remember the rest. with scholar map you can save the papers in this knowledge base and ask in natural language any query to the agent, or search for it using semantic search.

      its quite literally your personal library of research papers!

  • Md Abid Hussain
    Md Abid HussainJun 25, 2025

    Great project

Add comment