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
Install
uv
package manager if not already by following these installation docs.Sync up dependencies:
uv sync
- Start the application using:
uv run main.py
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...
The script will automatically run the configuration code and setup knowledge base.
Demo
What are the use cases of scholar map ?